Skip to content
Snippets Groups Projects
Commit ce2521bf authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller
Browse files

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: default avatarKirill Tkhai <tkhai@yandex.ru>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bf70053c
No related branches found
No related tags found
No related merge requests found
...@@ -123,11 +123,12 @@ void smp_callin(void) ...@@ -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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment