[RFC] ARM: shmobile: allow non-SMP builds again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



platform_can_secondary_boot() is only available for SMP, so guard the smp_init
function with some ifdeffery to allow building without SMP.

Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
---

This is the easiest solution, but I wonder if it is the proper one? It might
make sense to modify the Makefile so platsmp.o is in smp-y and not cpu-y? I may
be missing here something, though.

I needed !SMP for debugging purposes, obviously.

 arch/arm/mach-shmobile/platsmp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-shmobile/platsmp.c b/arch/arm/mach-shmobile/platsmp.c
index 02e21bceb0856b..d286e3ff6f6a5a 100644
--- a/arch/arm/mach-shmobile/platsmp.c
+++ b/arch/arm/mach-shmobile/platsmp.c
@@ -37,6 +37,7 @@ bool shmobile_smp_cpu_can_disable(unsigned int cpu)
 }
 #endif
 
+#ifdef CONFIG_SMP
 bool __init shmobile_smp_init_fallback_ops(void)
 {
 	/* fallback on PSCI/smp_ops if no other DT based method is detected */
@@ -45,3 +46,4 @@ bool __init shmobile_smp_init_fallback_ops(void)
 
 	return platform_can_secondary_boot() ? true : false;
 }
+#endif
-- 
2.8.1




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux