diff options
| -rw-r--r-- | arch/arm/mach-milbeaut/platsmp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-milbeaut/platsmp.c b/arch/arm/mach-milbeaut/platsmp.c index 591543c81399..3ea880f5fcb7 100644 --- a/arch/arm/mach-milbeaut/platsmp.c +++ b/arch/arm/mach-milbeaut/platsmp.c | |||
| @@ -65,6 +65,7 @@ static void m10v_smp_init(unsigned int max_cpus) | |||
| 65 | writel(KERNEL_UNBOOT_FLAG, m10v_smp_base + cpu * 4); | 65 | writel(KERNEL_UNBOOT_FLAG, m10v_smp_base + cpu * 4); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | #ifdef CONFIG_HOTPLUG_CPU | ||
| 68 | static void m10v_cpu_die(unsigned int l_cpu) | 69 | static void m10v_cpu_die(unsigned int l_cpu) |
| 69 | { | 70 | { |
| 70 | gic_cpu_if_down(0); | 71 | gic_cpu_if_down(0); |
| @@ -83,12 +84,15 @@ static int m10v_cpu_kill(unsigned int l_cpu) | |||
| 83 | 84 | ||
| 84 | return 1; | 85 | return 1; |
| 85 | } | 86 | } |
| 87 | #endif | ||
| 86 | 88 | ||
| 87 | static struct smp_operations m10v_smp_ops __initdata = { | 89 | static struct smp_operations m10v_smp_ops __initdata = { |
| 88 | .smp_prepare_cpus = m10v_smp_init, | 90 | .smp_prepare_cpus = m10v_smp_init, |
| 89 | .smp_boot_secondary = m10v_boot_secondary, | 91 | .smp_boot_secondary = m10v_boot_secondary, |
| 92 | #ifdef CONFIG_HOTPLUG_CPU | ||
| 90 | .cpu_die = m10v_cpu_die, | 93 | .cpu_die = m10v_cpu_die, |
| 91 | .cpu_kill = m10v_cpu_kill, | 94 | .cpu_kill = m10v_cpu_kill, |
| 95 | #endif | ||
| 92 | }; | 96 | }; |
| 93 | CPU_METHOD_OF_DECLARE(m10v_smp, "socionext,milbeaut-m10v-smp", &m10v_smp_ops); | 97 | CPU_METHOD_OF_DECLARE(m10v_smp, "socionext,milbeaut-m10v-smp", &m10v_smp_ops); |
| 94 | 98 | ||
