kill unused dump_fpu() instances
dump_fpu() is used only on the architectures that support elf and have neither CORE_DUMP_USE_REGSET nor ELF_CORE_COPY_FPREGS defined. Currently that's csky, m68k, microblaze, nds32 and unicore32. The rest of the instances are dead code. NB: THIS MUST GO AFTER ELF_FDPIC CONVERSION Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -152,25 +152,6 @@ void release_thread(struct task_struct *dead_task)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Fill in the FPU structure for a core dump.
|
||||
*/
|
||||
|
||||
int dump_fpu (struct pt_regs * regs, elf_fpregset_t *r)
|
||||
{
|
||||
if (regs == NULL)
|
||||
return 0;
|
||||
|
||||
memcpy(r, regs->fr, sizeof *r);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int dump_task_fpu (struct task_struct *tsk, elf_fpregset_t *r)
|
||||
{
|
||||
memcpy(r, tsk->thread.regs.fr, sizeof(*r));
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Idle thread support
|
||||
*
|
||||
|
Reference in New Issue
Block a user