Skip to content

Commit 855bfe0

Browse files
npigginmpe
authored andcommitted
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: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 6bed323 commit 855bfe0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/powerpc/kernel/smp.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,10 @@ static void stop_this_cpu(void *dummy)
574574
/* Remove this CPU */
575575
set_cpu_online(smp_processor_id(), false);
576576

577-
local_irq_disable();
577+
hard_irq_disable();
578+
spin_begin();
578579
while (1)
579-
;
580+
spin_cpu_relax();
580581
}
581582

582583
void smp_send_stop(void)

0 commit comments

Comments
 (0)