提交 855bfe0d 编写于 作者: N Nicholas Piggin 提交者: Michael Ellerman

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: NNicholas Piggin <npiggin@gmail.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 6bed3237
...@@ -574,9 +574,10 @@ static void stop_this_cpu(void *dummy) ...@@ -574,9 +574,10 @@ static void stop_this_cpu(void *dummy)
/* Remove this CPU */ /* Remove this CPU */
set_cpu_online(smp_processor_id(), false); set_cpu_online(smp_processor_id(), false);
local_irq_disable(); hard_irq_disable();
spin_begin();
while (1) while (1)
; spin_cpu_relax();
} }
void smp_send_stop(void) void smp_send_stop(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册