diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-11-19 09:03:57 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-12-02 19:03:08 -0500 |
commit | be95485a0b8288a93402705730d3ea32f9f812b9 (patch) | |
tree | 11710c3815b8226520d65e6ef7041e578b614c07 /arch/arm/include/asm/psci.h | |
parent | e9c38ceba8d96304c75ca99f7e49060af3a7e063 (diff) |
ARM: 8457/1: psci-smp is built only for SMP
The PSCI SMP implementation is built only when both CONFIG_SMP and
CONFIG_ARM_PSCI are set, so a configuration that has the latter
but not the former can get a link error when it tries to call
psci_smp_available().
arch/arm/mach-tegra/built-in.o: In function `tegra114_cpuidle_init':
cpuidle-tegra114.c:(.init.text+0x52a): undefined reference to `psci_smp_available'
This corrects the #ifdef in the psci.h header file to match the
Makefile conditional we have for building that function.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/psci.h')
-rw-r--r-- | arch/arm/include/asm/psci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index 68ee3ce17b82..b4c6d99364f1 100644 --- a/arch/arm/include/asm/psci.h +++ b/arch/arm/include/asm/psci.h | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | extern struct smp_operations psci_smp_ops; | 17 | extern struct smp_operations psci_smp_ops; |
18 | 18 | ||
19 | #ifdef CONFIG_ARM_PSCI | 19 | #if defined(CONFIG_SMP) && defined(CONFIG_ARM_PSCI) |
20 | bool psci_smp_available(void); | 20 | bool psci_smp_available(void); |
21 | #else | 21 | #else |
22 | static inline bool psci_smp_available(void) { return false; } | 22 | static inline bool psci_smp_available(void) { return false; } |