ARM: uniphier: only select TWD for SMP
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 May 2015 15:55:16 +0000 (17:55 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 20 May 2015 15:21:30 +0000 (17:21 +0200)
This makes uniphier behave like all the other platforms that
support TWD, and only select this driver when SMP is enabled.
Without this, we get a compile error on UP builds:

arch/arm/kernel/smp_twd.c: In function 'twd_local_timer_of_register':
arch/arm/kernel/smp_twd.c:391:20: error: 'setup_max_cpus' undeclared (first use in this function)

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/Kconfig

index a017b1dd9c78e9aafbbc761b41786a4c8a2ea0dd..b640458fd757cfef29ecb056f90c9ca6554bb5a8 100644 (file)
@@ -5,7 +5,7 @@ config ARCH_UNIPHIER
        select ARM_GLOBAL_TIMER
        select ARM_GIC
        select HAVE_ARM_SCU
-       select HAVE_ARM_TWD
+       select HAVE_ARM_TWD if SMP
        help
          Support for UniPhier SoC family developed by Socionext Inc.
          (formerly, System LSI Business Division of Panasonic Corporation)