Commit 7920c4d6 authored by Ralf Baechle's avatar Ralf Baechle

MIPS: SMP: Don't reenable interrupts in stop_this_cpu; use WAIT instruction.

Noticed by Anirban Sinha <ASinha@zeugmasystems.com>; patch by me.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f67ae983
...@@ -163,8 +163,10 @@ static void stop_this_cpu(void *dummy) ...@@ -163,8 +163,10 @@ static void stop_this_cpu(void *dummy)
* Remove this CPU: * Remove this CPU:
*/ */
cpu_clear(smp_processor_id(), cpu_online_map); cpu_clear(smp_processor_id(), cpu_online_map);
local_irq_enable(); /* May need to service _machine_restart IPI */ for (;;) {
for (;;); /* Wait if available. */ if (cpu_wait)
(*cpu_wait)(); /* Wait if available. */
}
} }
void smp_send_stop(void) void smp_send_stop(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment