summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentine Barshak <vbarshak@ru.mvista.com>2009-11-25 12:48:52 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-12-09 07:09:34 +0100
commit8389b37dffdc695b4fb363ebe0ed9748bb3b48d0 (patch)
tree157445740f8c00189909f2c0ceed8a02c364c3f7
parentpowerpc/pseries: Add kernel based CPU DLPAR handling (diff)
downloadlinux-8389b37dffdc695b4fb363ebe0ed9748bb3b48d0.tar.xz
linux-8389b37dffdc695b4fb363ebe0ed9748bb3b48d0.zip
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.c3
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)
;