The patch titled generic-ipi: cleanup for generic_smp_call_function_interrupt() has been added to the -mm tree. Its filename is generic-ipi-cleanup-for-generic_smp_call_function_interrupt.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: generic-ipi: cleanup for generic_smp_call_function_interrupt() From: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx> Use smp_processor_id() instead of get_cpu() and put_cpu() in generic_smp_call_function_interrupt(), It's no need to disable preempt, beacuse we must call generic_smp_call_function_interrupt() with interrupts disabled Signed-off-by: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Jens Axboe <jens.axboe@xxxxxxxxxx> Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/smp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN kernel/smp.c~generic-ipi-cleanup-for-generic_smp_call_function_interrupt kernel/smp.c --- a/kernel/smp.c~generic-ipi-cleanup-for-generic_smp_call_function_interrupt +++ a/kernel/smp.c @@ -174,7 +174,7 @@ void generic_exec_single(int cpu, struct void generic_smp_call_function_interrupt(void) { struct call_function_data *data; - int cpu = get_cpu(); + int cpu = smp_processor_id(); /* * Ensure entry is visible on call_function_queue after we have @@ -217,7 +217,6 @@ void generic_smp_call_function_interrupt csd_unlock(&data->csd); } - put_cpu(); } /* _ Patches currently in -mm which might be from xiaoguangrong@xxxxxxxxxxxxxx are generic-ipi-fix-hotplug_cfd.patch generic-ipi-cleanup-for-generic_smp_call_function_interrupt.patch kernel-smpc-relocate-some-code.patch generic-ipi-fix-the-race-between-generic_smp_call_function_-and-hotplug_cfd.patch generic-ipi-make-struct-call_function_data-lockless.patch generic-ipi-make-struct-call_function_data-lockless-cleanup.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