Browse Source

sparc64: smp_callin: Enable irqs after preemption is disabled

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>
Kirill Tkhai 11 years ago
parent
commit
ce2521bf7d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      arch/sparc/kernel/smp_64.c

+ 2 - 1
arch/sparc/kernel/smp_64.c

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