diff options
Diffstat (limited to 'arch/powerpc/kernel/signal_32.c')
-rw-r--r-- | arch/powerpc/kernel/signal_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c index 3cd7a32c8ff4..4022cbb7e2d6 100644 --- a/arch/powerpc/kernel/signal_32.c +++ b/arch/powerpc/kernel/signal_32.c | |||
@@ -458,7 +458,7 @@ static int save_user_regs(struct pt_regs *regs, struct mcontext __user *frame, | |||
458 | * contains valid data | 458 | * contains valid data |
459 | */ | 459 | */ |
460 | if (current->thread.used_vsr && ctx_has_vsx_region) { | 460 | if (current->thread.used_vsr && ctx_has_vsx_region) { |
461 | __giveup_vsx(current); | 461 | flush_vsx_to_thread(current); |
462 | if (copy_vsx_to_user(&frame->mc_vsregs, current)) | 462 | if (copy_vsx_to_user(&frame->mc_vsregs, current)) |
463 | return 1; | 463 | return 1; |
464 | msr |= MSR_VSX; | 464 | msr |= MSR_VSX; |
@@ -606,7 +606,7 @@ static int save_tm_user_regs(struct pt_regs *regs, | |||
606 | * contains valid data | 606 | * contains valid data |
607 | */ | 607 | */ |
608 | if (current->thread.used_vsr) { | 608 | if (current->thread.used_vsr) { |
609 | __giveup_vsx(current); | 609 | flush_vsx_to_thread(current); |
610 | if (copy_vsx_to_user(&frame->mc_vsregs, current)) | 610 | if (copy_vsx_to_user(&frame->mc_vsregs, current)) |
611 | return 1; | 611 | return 1; |
612 | if (msr & MSR_VSX) { | 612 | if (msr & MSR_VSX) { |