[PATCH v2 repost] ARM: Availability of psci_smp_available depends on CONFIG_SMP

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Thu Nov 12 02:06:18 PST 2015


From: Jan Kiszka <jan.kiszka at siemens.com>

Ensure that we can use psci_smp_available without checking for
CONFIG_SMP first (CONFIG_ARM_PSCI=y, CONFIG_SMP=n and
CONFIG_ARCH_TEGRA_124_SOC=y):

|arch/arm/mach-tegra/built-in.o: In function `tegra114_cpuidle_init':
|arch/arm/mach-tegra/cpuidle-tegra114.c:93: undefined reference to `psci_smp_available'
|Makefile:927: recipe for target 'vmlinux' failed

Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
---

Will Deacon said:
"I just stopped moaning about not understanding it :)"

 arch/arm/include/asm/psci.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/arm/include/asm/psci.h
+++ b/arch/arm/include/asm/psci.h
@@ -16,7 +16,7 @@
 
 extern struct smp_operations psci_smp_ops;
 
-#ifdef CONFIG_ARM_PSCI
+#if defined(CONFIG_ARM_PSCI) && defined(CONFIG_SMP)
 bool psci_smp_available(void);
 #else
 static inline bool psci_smp_available(void) { return false; }



More information about the linux-arm-kernel mailing list