projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f67ae98
)
MIPS: SMP: Don't reenable interrupts in stop_this_cpu; use WAIT instruction.
author
Ralf Baechle
<ralf@linux-mips.org>
Sat, 18 Oct 2008 12:23:10 +0000
(13:23 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Mon, 27 Oct 2008 16:18:26 +0000
(16:18 +0000)
Noticed by Anirban Sinha <ASinha@zeugmasystems.com>; patch by me.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smp.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/smp.c
b/arch/mips/kernel/smp.c
index 7b59cfb7e6022a21cf90cbd93e8e6a2dfe3a53d3..b79ea7055ec30210a392e348bb19d6a23ddfd174 100644
(file)
--- a/
arch/mips/kernel/smp.c
+++ b/
arch/mips/kernel/smp.c
@@
-163,8
+163,10
@@
static void stop_this_cpu(void *dummy)
* Remove this CPU:
*/
cpu_clear(smp_processor_id(), cpu_online_map);
- local_irq_enable(); /* May need to service _machine_restart IPI */
- for (;;); /* Wait if available. */
+ for (;;) {
+ if (cpu_wait)
+ (*cpu_wait)(); /* Wait if available. */
+ }
}
void smp_send_stop(void)