Messages in this thread Patch in this message | | | Date | Wed, 29 Jul 2009 15:55:25 +0800 | From | Xiao Guangrong <> | Subject | [PATCH 2/3 -mm] generic-ipi: cleanup for generic_smp_call_function_interrupt() |
| |
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@cn.fujitsu.com> --- kernel/smp.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/kernel/smp.c b/kernel/smp.c index 1b5fd2e..3035ab8 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -171,7 +171,7 @@ void generic_exec_single(int cpu, struct call_single_data *data, int wait) 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 @@ -207,7 +207,6 @@ void generic_smp_call_function_interrupt(void) csd_unlock(&data->csd); } - put_cpu(); } /* -- 1.6.1.2
| |