sparc64: smp_callin: Enable irqs after preemption is disabled
authorKirill Tkhai <tkhai@yandex.ru>
Thu, 12 Dec 2013 14:09:50 +0000 (18:09 +0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jan 2014 01:55:19 +0000 (17:55 -0800)
Most of other architectures have below suggested order.
So lets do the same to fit generic idle loop scheme better.

Signed-off-by: Kirill Tkhai <tkhai@yandex.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/smp_64.c

index b66a5338231e965252fef5f23234141bb2fc8f85..b085311dcd0ea9f81840e1fc2550c4f870e984eb 100644 (file)
@@ -123,11 +123,12 @@ void smp_callin(void)
                rmb();
 
        set_cpu_online(cpuid, true);
-       local_irq_enable();
 
        /* idle thread is expected to have preempt disabled */
        preempt_disable();
 
+       local_irq_enable();
+
        cpu_startup_entry(CPUHP_ONLINE);
 }