projects/linux·commit e9a5ea18

sparc32,leon: add notify_cpu_starting()

e9a5ea18 · Yong Zhang <[email protected]> · 2012-04-19 20:28:32 +00:00

Otherwise cpu_active_mask will not set, which lead to other issue.

Signed-off-by: Yong Zhang <[email protected]>
Signed-off-by: Konrad Eisele <[email protected]>
Reviewed-by: Srivatsa S. Bhat <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Commit
e9a5ea1852cd8d7e155d2e3a45e4a6ea25110f7d
Parents
8f4f9d4d

Changes

1 files changed · +3 −0

FileStatusAddDelContent
arch/sparc/kernel/leon_smp.cmodified+3−0View file

arch/sparc/kernel/leon_smp.c

View file
diff --git a/arch/sparc/kernel/leon_smp.c b/arch/sparc/kernel/leon_smp.c
index 1210fde..160cac9 100644
--- a/arch/sparc/kernel/leon_smp.c
+++ b/arch/sparc/kernel/leon_smp.c
@@ -23,6 +23,7 @@
#include <linux/pm.h>
#include <linux/delay.h>
#include <linux/gfp.h>
+#include <linux/cpu.h>
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
@@ -78,6 +79,8 @@ void __cpuinit leon_callin(void)
local_flush_tlb_all();
leon_configure_cache_smp();
+ notify_cpu_starting(cpuid);
+
/* Get our local ticker going. */
smp_setup_percpu_timer();