Skip to content

Commit

Permalink
sparc64: smp_callin: Enable irqs after preemption is disabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kirill Tkhai authored and David S. Miller committed Jan 5, 2014
1 parent bf70053 commit ce2521b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/sparc/kernel/smp_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ce2521b

Please sign in to comment.