]> Pileus Git - ~andy/linux/blobdiff - arch/sh/kernel/ptrace_64.c
sh64: Use the shared FPU state restorer.
[~andy/linux] / arch / sh / kernel / ptrace_64.c
index 67fbcee89e7e49a96de9de2a70a6ca3687878ac2..23fbd92a74e722e98a57af7f1b0823b94dad2b77 100644 (file)
@@ -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);