diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-01-27 00:48:03 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-01-27 23:00:24 -0500 |
commit | 8aa989b8fba1428b50a1be771c01285f1de0227b (patch) | |
tree | 3548352e726b557949e58396f76dd1d7581cf946 /arch/powerpc/platforms | |
parent | 1dcee55feadfef92664ac941d799e62668c1339b (diff) |
powerpc: Remove some unused functions
Remove slice_set_psize() which is not used.
It was added in 3a8247cc2c85 "powerpc: Only demote individual slices
rather than whole process" but was never used.
Remove vsx_assist_exception() which is not used.
It was added in ce48b2100785 "powerpc: Add VSX context save/restore,
ptrace and signal support" but was never used.
Remove generic_mach_cpu_die() which is not used.
Its last caller was removed in 375f561a4131 "powerpc/powernv: Always go
into nap mode when CPU is offline".
Remove mpc7448_hpc2_power_off() and mpc7448_hpc2_halt() which are
unused.
These were introduced in c5d56332fd6c "[POWERPC] Add general support for
mpc7448hpc2 (Taiga) platform" but were never used.
This was partially found by using a static code analysis program called
cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
[mpe: Update changelog with details on when/why they are unused]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c index beeaf4a173e1..df4ad95f183e 100644 --- a/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c +++ b/arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c | |||
@@ -156,17 +156,6 @@ void mpc7448_hpc2_restart(char *cmd) | |||
156 | for (;;) ; /* Spin until reset happens */ | 156 | for (;;) ; /* Spin until reset happens */ |
157 | } | 157 | } |
158 | 158 | ||
159 | void mpc7448_hpc2_power_off(void) | ||
160 | { | ||
161 | local_irq_disable(); | ||
162 | for (;;) ; /* No way to shut power off with software */ | ||
163 | } | ||
164 | |||
165 | void mpc7448_hpc2_halt(void) | ||
166 | { | ||
167 | mpc7448_hpc2_power_off(); | ||
168 | } | ||
169 | |||
170 | /* | 159 | /* |
171 | * Called very early, device-tree isn't unflattened | 160 | * Called very early, device-tree isn't unflattened |
172 | */ | 161 | */ |