summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-hisi/platmcpm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-hisi/platmcpm.c b/arch/arm/mach-hisi/platmcpm.c
index 880cbfa9c343..b5f8f5ffda79 100644
--- a/arch/arm/mach-hisi/platmcpm.c
+++ b/arch/arm/mach-hisi/platmcpm.c
@@ -152,6 +152,7 @@ out:
152 return 0; 152 return 0;
153} 153}
154 154
155#ifdef CONFIG_HOTPLUG_CPU
155static void hip04_cpu_die(unsigned int l_cpu) 156static void hip04_cpu_die(unsigned int l_cpu)
156{ 157{
157 unsigned int mpidr, cpu, cluster; 158 unsigned int mpidr, cpu, cluster;
@@ -236,11 +237,14 @@ err:
236 spin_unlock_irq(&boot_lock); 237 spin_unlock_irq(&boot_lock);
237 return 0; 238 return 0;
238} 239}
240#endif
239 241
240static struct smp_operations __initdata hip04_smp_ops = { 242static struct smp_operations __initdata hip04_smp_ops = {
241 .smp_boot_secondary = hip04_boot_secondary, 243 .smp_boot_secondary = hip04_boot_secondary,
244#ifdef CONFIG_HOTPLUG_CPU
242 .cpu_die = hip04_cpu_die, 245 .cpu_die = hip04_cpu_die,
243 .cpu_kill = hip04_cpu_kill, 246 .cpu_kill = hip04_cpu_kill,
247#endif
244}; 248};
245 249
246static bool __init hip04_cpu_table_init(void) 250static bool __init hip04_cpu_table_init(void)