Skip to content

Commit

Permalink
sh: remove unused do_fpu_error
Browse files Browse the repository at this point in the history
This does not appear to have been used since commit 74d99a5 ("sh:
SH-2A FPU support") in 2007.

Signed-off-by: Bobby Bingham <koorogi@koorogi.info>
Cc: Paul Mundt <paul.mundt@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Bobby Bingham authored and Linus Torvalds committed Apr 3, 2014
1 parent abafe5d commit 7caf62d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions arch/sh/math-emu/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,24 +574,6 @@ static int ieee_fpe_handler(struct pt_regs *regs)
return 0;
}

asmlinkage void do_fpu_error(unsigned long r4, unsigned long r5,
unsigned long r6, unsigned long r7,
struct pt_regs regs)
{
struct task_struct *tsk = current;
siginfo_t info;

if (ieee_fpe_handler (&regs))
return;

regs.pc += 2;
info.si_signo = SIGFPE;
info.si_errno = 0;
info.si_code = FPE_FLTINV;
info.si_addr = (void __user *)regs.pc;
force_sig_info(SIGFPE, &info, tsk);
}

/**
* fpu_init - Initialize FPU registers
* @fpu: Pointer to software emulated FPU registers.
Expand Down

0 comments on commit 7caf62d

Please sign in to comment.