From: Valentine Barshak Date: Wed, 25 Nov 2009 11:48:52 +0000 (+0000) Subject: powerpc: stop_this_cpu: remove the cpu from the online map. X-Git-Tag: v2.6.33-rc1~293^2~19 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=8389b37dffdc695b4fb363ebe0ed9748bb3b48d0;p=~emulex%2Finfiniband.git 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 Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 9b86a74d281..97196eefef3 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) ;