diff options
Diffstat (limited to 'arch/arm/mach-hisi')
-rw-r--r-- | arch/arm/mach-hisi/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/mach-hisi/hotplug.c | 2 |
2 files changed, 3 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 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y += hisilicon.o | 5 | obj-y += hisilicon.o |
6 | obj-$(CONFIG_SMP) += platsmp.o | 6 | obj-$(CONFIG_SMP) += platsmp.o hotplug.o |
7 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | ||
diff --git a/arch/arm/mach-hisi/hotplug.c b/arch/arm/mach-hisi/hotplug.c index b909854eee7f..abd441b0c604 100644 --- a/arch/arm/mach-hisi/hotplug.c +++ b/arch/arm/mach-hisi/hotplug.c | |||
@@ -178,6 +178,7 @@ static inline void cpu_enter_lowpower(void) | |||
178 | : "cc"); | 178 | : "cc"); |
179 | } | 179 | } |
180 | 180 | ||
181 | #ifdef CONFIG_HOTPLUG_CPU | ||
181 | void hi3xxx_cpu_die(unsigned int cpu) | 182 | void hi3xxx_cpu_die(unsigned int cpu) |
182 | { | 183 | { |
183 | cpu_enter_lowpower(); | 184 | cpu_enter_lowpower(); |
@@ -198,3 +199,4 @@ int hi3xxx_cpu_kill(unsigned int cpu) | |||
198 | hi3xxx_set_cpu(cpu, false); | 199 | hi3xxx_set_cpu(cpu, false); |
199 | return 1; | 200 | return 1; |
200 | } | 201 | } |
202 | #endif | ||