diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-19 15:55:27 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-19 15:55:27 +0900 |
commit | d6db8888c8957fbdcd611e1321a6f6a0d6fb7e15 (patch) | |
tree | 7f9de26ea420c0d3ca24817f6296fb2c5007484d /arch/sh/kernel/ptrace_64.c | |
parent | 88ea1a445a84fcfbedb810c01e84d6711352bd82 (diff) |
sh64: Use the shared FPU state restorer.
This kills off the sh64-specific state restorer and switches over to
the generic one.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/ptrace_64.c')
-rw-r--r-- | arch/sh/kernel/ptrace_64.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/kernel/ptrace_64.c b/arch/sh/kernel/ptrace_64.c index 67fbcee89e7..23fbd92a74e 100644 --- a/arch/sh/kernel/ptrace_64.c +++ b/arch/sh/kernel/ptrace_64.c @@ -114,8 +114,7 @@ put_fpu_long(struct task_struct *task, unsigned long addr, unsigned long data) regs = (struct pt_regs*)((unsigned char *)task + THREAD_SIZE) - 1; if (!tsk_used_math(task)) { - fpinit(&task->thread.xstate->hardfpu); - set_stopped_child_used_math(task); + init_fpu(task); } else if (last_task_used_math == task) { enable_fpu(); save_fpu(task); |