projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf70053
)
sparc64: smp_callin: Enable irqs after preemption is disabled
author
Kirill Tkhai
<tkhai@yandex.ru>
Thu, 12 Dec 2013 14:09:50 +0000
(18:09 +0400)
committer
David 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
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/smp_64.c
b/arch/sparc/kernel/smp_64.c
index
b66a533
..
b085311
100644
(file)
--- a/
arch/sparc/kernel/smp_64.c
+++ b/
arch/sparc/kernel/smp_64.c
@@
-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);
}