aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/ptrace_64.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-19 15:55:27 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-01-19 15:55:27 +0900
commitd6db8888c8957fbdcd611e1321a6f6a0d6fb7e15 (patch)
tree7f9de26ea420c0d3ca24817f6296fb2c5007484d /arch/sh/kernel/ptrace_64.c
parentsh64: Fix up PC casting in unaligned fixup notifier with 32bit ABI. (diff)
downloadlinux-dev-d6db8888c8957fbdcd611e1321a6f6a0d6fb7e15.tar.xz
linux-dev-d6db8888c8957fbdcd611e1321a6f6a0d6fb7e15.zip
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 '')
-rw-r--r--arch/sh/kernel/ptrace_64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/kernel/ptrace_64.c b/arch/sh/kernel/ptrace_64.c
index 67fbcee89e7e..23fbd92a74e7 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);