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

Commit 855bfe0d authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman
Browse files

powerpc: hard disable irqs in smp_send_stop loop



The hard lockup watchdog can fire under local_irq_disable
on platforms with irq soft masking.

Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 6bed3237
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -574,9 +574,10 @@ static void stop_this_cpu(void *dummy)
	/* Remove this CPU */
	set_cpu_online(smp_processor_id(), false);

	local_irq_disable();
	hard_irq_disable();
	spin_begin();
	while (1)
		;
		spin_cpu_relax();
}

void smp_send_stop(void)