powerpc: Remove some unused functions
Remove slice_set_psize() which is not used. It was added in3a8247cc2c
"powerpc: Only demote individual slices rather than whole process" but was never used. Remove vsx_assist_exception() which is not used. It was added ince48b21007
"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 in375f561a41
"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 inc5d56332fd
"[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>
This commit is contained in:
@@ -1707,21 +1707,6 @@ void altivec_assist_exception(struct pt_regs *regs)
|
||||
}
|
||||
#endif /* CONFIG_ALTIVEC */
|
||||
|
||||
#ifdef CONFIG_VSX
|
||||
void vsx_assist_exception(struct pt_regs *regs)
|
||||
{
|
||||
if (!user_mode(regs)) {
|
||||
printk(KERN_EMERG "VSX assist exception in kernel mode"
|
||||
" at %lx\n", regs->nip);
|
||||
die("Kernel VSX assist exception", regs, SIGILL);
|
||||
}
|
||||
|
||||
flush_vsx_to_thread(current);
|
||||
printk(KERN_INFO "VSX assist not supported at %lx\n", regs->nip);
|
||||
_exception(SIGILL, regs, ILL_ILLOPC, regs->nip);
|
||||
}
|
||||
#endif /* CONFIG_VSX */
|
||||
|
||||
#ifdef CONFIG_FSL_BOOKE
|
||||
void CacheLockingException(struct pt_regs *regs, unsigned long address,
|
||||
unsigned long error_code)
|
||||
|
Reference in New Issue
Block a user