]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 8457/1: psci-smp is built only for SMP
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 Nov 2015 14:03:57 +0000 (15:03 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 12 Apr 2016 02:44:21 +0000 (22:44 -0400)
commit17cd5f95550aff7619ed4e2b2b0a0f9607d09431
tree8108d8de52e1bf8d363424d86d9189363172bf0e
parent527435d6f08f8b42d23b4ec3616169dc9ab1c40b
ARM: 8457/1: psci-smp is built only for SMP

[ Upstream commit be95485a0b8288a93402705730d3ea32f9f812b9 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/arm/include/asm/psci.h