projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4245e59
)
sparc64: Add missing notify_cpu_starting() call.
author
David S. Miller
<
[email protected]
>
Mon, 13 Oct 2008 03:55:24 +0000
(20:55 -0700)
committer
David S. Miller
<
[email protected]
>
Mon, 13 Oct 2008 06:55:47 +0000
(23:55 -0700)
Commit
e545a6140b698b2494daf0b32107bdcc5e901390
("kernel/cpu.c: create
a CPU_STARTING cpu_chain notifier") added a notify_cpu_starting()
notifier event, and hit every arch except sparc64.
Fix that missed case.
Signed-off-by: David S. Miller <
[email protected]
>
arch/sparc64/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/sparc64/kernel/smp.c
b/arch/sparc64/kernel/smp.c
index 2be166c544ca42a27222325cc61001b5190e368c..e5627118e6131b527468b4107f3d9f40a63387ea 100644
(file)
--- a/
arch/sparc64/kernel/smp.c
+++ b/
arch/sparc64/kernel/smp.c
@@
-21,6
+21,7
@@
#include <linux/jiffies.h>
#include <linux/profile.h>
#include <linux/lmb.h>
+#include <linux/cpu.h>
#include <asm/head.h>
#include <asm/ptrace.h>
@@
-115,6
+116,9
@@
void __cpuinit smp_callin(void)
atomic_inc(&init_mm.mm_count);
current->active_mm = &init_mm;
+ /* inform the notifiers about the new cpu */
+ notify_cpu_starting(cpuid);
+
while (!cpu_isset(cpuid, smp_commenced_mask))
rmb();