summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2014-05-23 09:23:32 +0900
committerArnd Bergmann <arnd@arndb.de>2014-05-23 21:28:11 +0200
commit3aae97c8b1dbefb23217d193e2818d1490651c95 (patch)
treed014927ff91e4d64652b5ab1a5a2540888121b62 /arch/arm/include
parent756abc8d6de06f0afc2121f69030f0d3f4f8177a (diff)
downloadlinux-3aae97c8b1dbefb23217d193e2818d1490651c95.tar.gz
linux-3aae97c8b1dbefb23217d193e2818d1490651c95.tar.bz2
linux-3aae97c8b1dbefb23217d193e2818d1490651c95.zip
ARM: trusted_foundations: fix compile error on non-SMP
The setup_max_cpus variable is only defined if CONFIG_SMP is set. Add a preprocessor condition to avoid the following compilation error if CONFIG_SMP is not set: arch/arm/include/asm/trusted_foundations.h: In function 'register_trusted_foundations': arch/arm/include/asm/trusted_foundations.h:57:2: error: 'setup_max_cpus' undeclared (first use in this function) Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Reported-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/trusted_foundations.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/trusted_foundations.h b/arch/arm/include/asm/trusted_foundations.h
index b5f7705abcb0..624e1d436c6c 100644
--- a/arch/arm/include/asm/trusted_foundations.h
+++ b/arch/arm/include/asm/trusted_foundations.h
@@ -54,7 +54,9 @@ static inline void register_trusted_foundations(
*/
pr_err("No support for Trusted Foundations, continuing in degraded mode.\n");
pr_err("Secondary processors as well as CPU PM will be disabled.\n");
+#if IS_ENABLED(CONFIG_SMP)
setup_max_cpus = 0;
+#endif
cpu_idle_poll_ctrl(true);
}