Skip to content

Commit 8389b37

Browse files
Valentine Barshakozbenh
authored andcommitted
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>
1 parent 1a8061c commit 8389b37

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/powerpc/kernel/smp.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ void crash_send_ipi(void (*crash_ipi_callback)(struct pt_regs *))
218218

219219
static void stop_this_cpu(void *dummy)
220220
{
221+
/* Remove this CPU */
222+
set_cpu_online(smp_processor_id(), false);
223+
221224
local_irq_disable();
222225
while (1)
223226
;

0 commit comments

Comments
 (0)