summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentine Barshak <vbarshak@ru.mvista.com>2009-11-25 11:48:52 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-12-09 17:09:34 +1100
commit8389b37dffdc695b4fb363ebe0ed9748bb3b48d0 (patch)
tree157445740f8c00189909f2c0ceed8a02c364c3f7
parent1a8061c46c46c960f715c597b9d279ea2ba42bd9 (diff)
downloadblackbird-op-linux-8389b37dffdc695b4fb363ebe0ed9748bb3b48d0.tar.gz
blackbird-op-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)
;
OpenPOWER on IntegriCloud