Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8389b37d authored by Valentine Barshak's avatar Valentine Barshak Committed by Benjamin Herrenschmidt
Browse files

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: default avatarValentine Barshak <vbarshak@ru.mvista.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 1a8061c4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)
		;