summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorZhao Chenhui <chenhui.zhao@freescale.com>2012-11-29 10:50:29 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-03-26 23:15:12 (GMT)
commitc3512ef1474b236cd41a35da6f949b25079878e5 (patch)
tree999f160aecc6c028e0c217898af33c289e75ecce /arch/powerpc
parent924f74a23a2ccce8ecb23155f2f9535fb8f7ab69 (diff)
downloadlinux-fsl-qoriq-c3512ef1474b236cd41a35da6f949b25079878e5.tar.xz
powerpc/85xx: fix compile error when CONFIG_HOTPLUG_CPU is disabled
../arch/powerpc/platforms/85xx/smp.c:306:4: error: implicit declaration of function 'generic_set_cpu_up' ../arch/powerpc/platforms/85xx/smp.c:321:4: error: implicit declaration of function 'is_core_down' make[3]: *** [arch/powerpc/platforms/85xx/smp.o] Error 1 Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com> Change-Id: I55145d1acf2a2710bc544c09b49492039bff1968 Reviewed-on: http://git.am.freescale.net:8181/564 Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/include/asm/smp.h2
-rw-r--r--arch/powerpc/platforms/85xx/smp.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/smp.h b/arch/powerpc/include/asm/smp.h
index 18e6001..6edd1b5 100644
--- a/arch/powerpc/include/asm/smp.h
+++ b/arch/powerpc/include/asm/smp.h
@@ -75,7 +75,7 @@ extern void uninhibit_secondary_onlining(void);
#else /* HOTPLUG_CPU */
static inline void inhibit_secondary_onlining(void) {}
static inline void uninhibit_secondary_onlining(void) {}
-
+#define generic_set_cpu_up(cpu) do { } while (0)
#endif
#ifdef CONFIG_PPC64
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c
index dc69f77..eeb2268 100644
--- a/arch/powerpc/platforms/85xx/smp.c
+++ b/arch/powerpc/platforms/85xx/smp.c
@@ -317,6 +317,7 @@ static int __cpuinit smp_85xx_kick_cpu(int nr)
}
}
+#ifdef CONFIG_HOTPLUG_CPU
/* Starting Thread 0 will reset core, so put both threads down first */
if (smt_capable() && system_state == SYSTEM_RUNNING &&
cpu_thread_in_core(nr) == 0 && !is_core_down(nr)) {
@@ -325,6 +326,7 @@ static int __cpuinit smp_85xx_kick_cpu(int nr)
return -ENOENT;
}
#endif
+#endif
np = of_get_cpu_node(nr, NULL);
cpu_rel_addr = of_get_property(np, "cpu-release-addr", NULL);