Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: uniphier: only select TWD for SMP

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>

+1 -1
+1 -1
arch/arm/mach-uniphier/Kconfig
··· 5 5 select ARM_GLOBAL_TIMER 6 6 select ARM_GIC 7 7 select HAVE_ARM_SCU 8 - select HAVE_ARM_TWD 8 + select HAVE_ARM_TWD if SMP 9 9 help 10 10 Support for UniPhier SoC family developed by Socionext Inc. 11 11 (formerly, System LSI Business Division of Panasonic Corporation)