Skip to contentSkip to conversation

sparc64: smp_callin: Enable irqs after preemption is disabled

PATCH New Kirill Tkhai 1 participant 1 message Dec 12, 2013 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/sparc/kernel/smp_64.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/sparc/kernel/smp_64.c +2 -1
index b66a533..b085311 100644
@@ -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);
 }