diff options
Diffstat (limited to 'arch/sh/kernel/process_64.c')
-rw-r--r-- | arch/sh/kernel/process_64.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c index 0761af4d2a42..0c2bc61b66b3 100644 --- a/arch/sh/kernel/process_64.c +++ b/arch/sh/kernel/process_64.c | |||
@@ -469,9 +469,9 @@ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) | |||
469 | fpvalid = !!tsk_used_math(tsk); | 469 | fpvalid = !!tsk_used_math(tsk); |
470 | if (fpvalid) { | 470 | if (fpvalid) { |
471 | if (current == last_task_used_math) { | 471 | if (current == last_task_used_math) { |
472 | grab_fpu(); | 472 | enable_fpu(); |
473 | fpsave(&tsk->thread.fpu.hard); | 473 | fpsave(&tsk->thread.fpu.hard); |
474 | release_fpu(); | 474 | disable_fpu(); |
475 | last_task_used_math = 0; | 475 | last_task_used_math = 0; |
476 | regs->sr |= SR_FD; | 476 | regs->sr |= SR_FD; |
477 | } | 477 | } |
@@ -496,9 +496,9 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, | |||
496 | 496 | ||
497 | #ifdef CONFIG_SH_FPU | 497 | #ifdef CONFIG_SH_FPU |
498 | if(last_task_used_math == current) { | 498 | if(last_task_used_math == current) { |
499 | grab_fpu(); | 499 | enable_fpu(); |
500 | fpsave(¤t->thread.fpu.hard); | 500 | fpsave(¤t->thread.fpu.hard); |
501 | release_fpu(); | 501 | disable_fpu(); |
502 | last_task_used_math = NULL; | 502 | last_task_used_math = NULL; |
503 | regs->sr |= SR_FD; | 503 | regs->sr |= SR_FD; |
504 | } | 504 | } |