diff options
Diffstat (limited to 'arch/arm/mach-spear13xx/hotplug.c')
-rw-r--r-- | arch/arm/mach-spear13xx/hotplug.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/arch/arm/mach-spear13xx/hotplug.c b/arch/arm/mach-spear13xx/hotplug.c index 5c6867b46d09..a7d2dd11a4f2 100644 --- a/arch/arm/mach-spear13xx/hotplug.c +++ b/arch/arm/mach-spear13xx/hotplug.c | |||
@@ -17,8 +17,6 @@ | |||
17 | #include <asm/cp15.h> | 17 | #include <asm/cp15.h> |
18 | #include <asm/smp_plat.h> | 18 | #include <asm/smp_plat.h> |
19 | 19 | ||
20 | extern volatile int pen_release; | ||
21 | |||
22 | static inline void cpu_enter_lowpower(void) | 20 | static inline void cpu_enter_lowpower(void) |
23 | { | 21 | { |
24 | unsigned int v; | 22 | unsigned int v; |
@@ -56,7 +54,7 @@ static inline void cpu_leave_lowpower(void) | |||
56 | : "cc"); | 54 | : "cc"); |
57 | } | 55 | } |
58 | 56 | ||
59 | static inline void platform_do_lowpower(unsigned int cpu, int *spurious) | 57 | static inline void spear13xx_do_lowpower(unsigned int cpu, int *spurious) |
60 | { | 58 | { |
61 | for (;;) { | 59 | for (;;) { |
62 | wfi(); | 60 | wfi(); |
@@ -79,17 +77,12 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious) | |||
79 | } | 77 | } |
80 | } | 78 | } |
81 | 79 | ||
82 | int platform_cpu_kill(unsigned int cpu) | ||
83 | { | ||
84 | return 1; | ||
85 | } | ||
86 | |||
87 | /* | 80 | /* |
88 | * platform-specific code to shutdown a CPU | 81 | * platform-specific code to shutdown a CPU |
89 | * | 82 | * |
90 | * Called with IRQs disabled | 83 | * Called with IRQs disabled |
91 | */ | 84 | */ |
92 | void __cpuinit platform_cpu_die(unsigned int cpu) | 85 | void __ref spear13xx_cpu_die(unsigned int cpu) |
93 | { | 86 | { |
94 | int spurious = 0; | 87 | int spurious = 0; |
95 | 88 | ||
@@ -97,7 +90,7 @@ void __cpuinit platform_cpu_die(unsigned int cpu) | |||
97 | * we're ready for shutdown now, so do it | 90 | * we're ready for shutdown now, so do it |
98 | */ | 91 | */ |
99 | cpu_enter_lowpower(); | 92 | cpu_enter_lowpower(); |
100 | platform_do_lowpower(cpu, &spurious); | 93 | spear13xx_do_lowpower(cpu, &spurious); |
101 | 94 | ||
102 | /* | 95 | /* |
103 | * bring this CPU back into the world of cache | 96 | * bring this CPU back into the world of cache |
@@ -108,12 +101,3 @@ void __cpuinit platform_cpu_die(unsigned int cpu) | |||
108 | if (spurious) | 101 | if (spurious) |
109 | pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious); | 102 | pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious); |
110 | } | 103 | } |
111 | |||
112 | int platform_cpu_disable(unsigned int cpu) | ||
113 | { | ||
114 | /* | ||
115 | * we don't allow CPU 0 to be shutdown (it is still too special | ||
116 | * e.g. clock tick interrupts) | ||
117 | */ | ||
118 | return cpu == 0 ? -EPERM : 0; | ||
119 | } | ||