The patch titled time: simplify smp_call_function_single() call sequence has been added to the -mm tree. Its filename is time-simplify-smp_call_function_single-call-sequence.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: time: simplify smp_call_function_single() call sequence From: Avi Kivity <avi@xxxxxxxxxxxx> smp_call_function_single() now knows how to call the function on the current cpu. Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/time/tick-broadcast.c | 17 ++++------------- 1 files changed, 4 insertions(+), 13 deletions(-) diff -puN kernel/time/tick-broadcast.c~time-simplify-smp_call_function_single-call-sequence kernel/time/tick-broadcast.c --- a/kernel/time/tick-broadcast.c~time-simplify-smp_call_function_single-call-sequence +++ a/kernel/time/tick-broadcast.c @@ -258,21 +258,12 @@ out: */ void tick_broadcast_on_off(unsigned long reason, int *oncpu) { - int cpu = get_cpu(); - - if (!cpu_isset(*oncpu, cpu_online_map)) { + if (!cpu_isset(*oncpu, cpu_online_map)) printk(KERN_ERR "tick-braodcast: ignoring broadcast for " "offline CPU #%d\n", *oncpu); - } else { - - if (cpu == *oncpu) - tick_do_broadcast_on_off(&reason); - else - smp_call_function_single(*oncpu, - tick_do_broadcast_on_off, - &reason, 1, 1); - } - put_cpu(); + else + smp_call_function_single(*oncpu, tick_do_broadcast_on_off, + &reason, 1, 1); } /* _ Patches currently in -mm which might be from avi@xxxxxxxxxxxx are ia64-allow-smp_call_function_single-to-current-cpu.patch git-kvm.patch cpuid-driver-simplify-smp_call_function_single-call-sequence.patch msr-driver-simplify-smp_call_function_single-call-sequence.patch time-simplify-smp_call_function_single-call-sequence.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html