Commit 17cd5f95 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Sasha Levin

ARM: 8457/1: psci-smp is built only for SMP

[ Upstream commit be95485a ]

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: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 527435d6
...@@ -37,7 +37,7 @@ struct psci_operations { ...@@ -37,7 +37,7 @@ struct psci_operations {
extern struct psci_operations psci_ops; extern struct psci_operations psci_ops;
extern struct smp_operations psci_smp_ops; extern struct smp_operations psci_smp_ops;
#ifdef CONFIG_ARM_PSCI #if defined(CONFIG_SMP) && defined(CONFIG_ARM_PSCI)
int psci_init(void); int psci_init(void);
bool psci_smp_available(void); bool psci_smp_available(void);
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment