projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eb174b
)
generic-ipi: cleanup for generic_smp_call_function_interrupt()
author
Xiao Guangrong
<
[email protected]
>
Tue, 15 Dec 2009 02:00:16 +0000
(18:00 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 15 Dec 2009 16:53:25 +0000
(08:53 -0800)
Use smp_processor_id() instead of get_cpu() and put_cpu() in
generic_smp_call_function_interrupt(), It's no need to disable preempt,
because we must call generic_smp_call_function_interrupt() with interrupts
disabled.
Signed-off-by: Xiao Guangrong <
[email protected]
>
Acked-by: Ingo Molnar <
[email protected]
>
Cc: Jens Axboe <
[email protected]
>
Cc: Nick Piggin <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Rusty Russell <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/smp.c
patch
|
blob
|
history
diff --git
a/kernel/smp.c
b/kernel/smp.c
index a8c76069cf5042008d5b85b957a132acbeacdad6..00a1d0ede532cad0b3acd9f0dad73c5ec26655d7 100644
(file)
--- 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
();
/*
* Shouldn't receive this interrupt on a cpu that is not yet online.
@@
-212,7
+212,6
@@
void generic_smp_call_function_interrupt(void)
csd_unlock(&data->csd);
}
- put_cpu();
}
/*