diff options
author | Valentine Barshak <vbarshak@ru.mvista.com> | 2009-11-25 14:48:52 +0300 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 09:09:34 +0300 |
commit | 8389b37dffdc695b4fb363ebe0ed9748bb3b48d0 (patch) | |
tree | 157445740f8c00189909f2c0ceed8a02c364c3f7 | |
parent | 1a8061c46c46c960f715c597b9d279ea2ba42bd9 (diff) | |
download | linux-8389b37dffdc695b4fb363ebe0ed9748bb3b48d0.tar.xz |
powerpc: stop_this_cpu: remove the cpu from the online map.
Remove the CPU from the online map to prevent smp_call_function
from sending messages to a stopped CPU.
Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/kernel/smp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 9b86a74d2815..97196eefef3e 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -218,6 +218,9 @@ void crash_send_ipi(void (*crash_ipi_callback)(struct pt_regs *)) static void stop_this_cpu(void *dummy) { + /* Remove this CPU */ + set_cpu_online(smp_processor_id(), false); + local_irq_disable(); while (1) ; |