Skip to content

Commit

Permalink
powerpc: stop_this_cpu: remove the cpu from the online map.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Valentine Barshak authored and Benjamin Herrenschmidt committed Dec 9, 2009
1 parent 1a8061c commit 8389b37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
;
Expand Down

0 comments on commit 8389b37

Please sign in to comment.