aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-vexpress/hotplug.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2011-09-08 08:15:22 -0400
committerArnd Bergmann <arnd@arndb.de>2012-09-13 09:34:50 -0400
commit3695adc2fdaf3ad1881e0dd3e3422e5e141abd7d (patch)
treeb8bef89c2d2f7527a78b2241e7729c6858927012 /arch/arm/mach-vexpress/hotplug.c
parentabcee5fb0dfbb248d883a2f6bdb4820abe3ac524 (diff)
ARM: SoC: convert VExpress/RealView to SMP operations
Convert both Realview and VExpress to use struct smp_operations to provide their SMP and CPU hotplug operation. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Acked-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-vexpress/hotplug.c')
-rw-r--r--arch/arm/mach-vexpress/hotplug.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/arm/mach-vexpress/hotplug.c b/arch/arm/mach-vexpress/hotplug.c
index c504a72b94d6..734423a39e7c 100644
--- a/arch/arm/mach-vexpress/hotplug.c
+++ b/arch/arm/mach-vexpress/hotplug.c
@@ -84,17 +84,12 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious)
84 } 84 }
85} 85}
86 86
87int platform_cpu_kill(unsigned int cpu)
88{
89 return 1;
90}
91
92/* 87/*
93 * platform-specific code to shutdown a CPU 88 * platform-specific code to shutdown a CPU
94 * 89 *
95 * Called with IRQs disabled 90 * Called with IRQs disabled
96 */ 91 */
97void platform_cpu_die(unsigned int cpu) 92void __ref vexpress_cpu_die(unsigned int cpu)
98{ 93{
99 int spurious = 0; 94 int spurious = 0;
100 95
@@ -113,12 +108,3 @@ void platform_cpu_die(unsigned int cpu)
113 if (spurious) 108 if (spurious)
114 pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious); 109 pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious);
115} 110}
116
117int platform_cpu_disable(unsigned int cpu)
118{
119 /*
120 * we don't allow CPU 0 to be shutdown (it is still too special
121 * e.g. clock tick interrupts)
122 */
123 return cpu == 0 ? -EPERM : 0;
124}