summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-hisi/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-03-15 11:47:14 +0100
committerArnd Bergmann <arnd@arndb.de>2014-03-21 18:22:09 +0100
commit1d858f3177eee9dcf7e0a4a933d5269db7875098 (patch)
treeed51fedfc3dd045401ef2f88918f0fddfee0e3db /arch/arm/mach-hisi/Makefile
parentARM: ep93xx: export ep93xx_chip_revision (diff)
downloadlinux-1d858f3177eee9dcf7e0a4a933d5269db7875098.tar.xz
linux-1d858f3177eee9dcf7e0a4a933d5269db7875098.zip
ARM: hisi: fix building without CONFIG_HOTPLUG_CPU
The hisi SMP code always uses the hi3xxx_set_cpu() function defined in the hotplug.c file, so we cannot build without this when CONFIG_SMP is enabled. This patch slightly restructures the code so we always build the parts of hotplug.c that we need but just leave out the CPU disable logic if CONFIG_HOTPLUG_CPU is turned off. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'arch/arm/mach-hisi/Makefile')
-rw-r--r--arch/arm/mach-hisi/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-hisi/Makefile b/arch/arm/mach-hisi/Makefile
index 6870058d0a48..2ae1b59267c2 100644
--- a/arch/arm/mach-hisi/Makefile
+++ b/arch/arm/mach-hisi/Makefile
@@ -3,5 +3,4 @@
#
obj-y += hisilicon.o
-obj-$(CONFIG_SMP) += platsmp.o
-obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
+obj-$(CONFIG_SMP) += platsmp.o hotplug.o