diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2011-09-08 08:15:22 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-13 09:35:49 -0400 |
commit | a17257322f5e6ca376c15908b55423369274fcad (patch) | |
tree | eda0026c1ba985db6e9029d0d79d5f4ea5d86a9e /arch/arm/mach-tegra/hotplug.c | |
parent | 06915321e7935d2eb778f0a7f333b2603c1404df (diff) |
ARM: SoC: convert Tegra to SMP operations
Convert Tegra to use struct smp_operations to provide its SMP
and CPU hotplug operations.
Tested on Harmony.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-tegra/hotplug.c')
-rw-r--r-- | arch/arm/mach-tegra/hotplug.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/arm/mach-tegra/hotplug.c b/arch/arm/mach-tegra/hotplug.c index d8dc9ddd6d18..2440705438f4 100644 --- a/arch/arm/mach-tegra/hotplug.c +++ b/arch/arm/mach-tegra/hotplug.c | |||
@@ -87,17 +87,12 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious) | |||
87 | } | 87 | } |
88 | } | 88 | } |
89 | 89 | ||
90 | int platform_cpu_kill(unsigned int cpu) | ||
91 | { | ||
92 | return 1; | ||
93 | } | ||
94 | |||
95 | /* | 90 | /* |
96 | * platform-specific code to shutdown a CPU | 91 | * platform-specific code to shutdown a CPU |
97 | * | 92 | * |
98 | * Called with IRQs disabled | 93 | * Called with IRQs disabled |
99 | */ | 94 | */ |
100 | void platform_cpu_die(unsigned int cpu) | 95 | void __ref tegra_cpu_die(unsigned int cpu) |
101 | { | 96 | { |
102 | int spurious = 0; | 97 | int spurious = 0; |
103 | 98 | ||
@@ -116,12 +111,3 @@ void platform_cpu_die(unsigned int cpu) | |||
116 | if (spurious) | 111 | if (spurious) |
117 | pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious); | 112 | pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious); |
118 | } | 113 | } |
119 | |||
120 | int platform_cpu_disable(unsigned int cpu) | ||
121 | { | ||
122 | /* | ||
123 | * we don't allow CPU 0 to be shutdown (it is still too special | ||
124 | * e.g. clock tick interrupts) | ||
125 | */ | ||
126 | return cpu == 0 ? -EPERM : 0; | ||
127 | } | ||