Message ID | 1536164261-24846-2-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
Series | powerpc fixes (deadlock/snooze) | expand |
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index c190d68..7ed7d0c 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -570,9 +570,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(); } #ifdef CONFIG_NMI_IPI