diff mbox

[2/4] powerpc: remove the redundant flush_fp_to_thread() in setup_sigcontext()

Message ID 1373792526-16241-3-git-send-email-haokexin@gmail.com (mailing list archive)
State Accepted, archived
Commit 662499d04b6bc73d0ecab0ab876bacd5bbe7d6a7
Delegated to: Benjamin Herrenschmidt
Headers show

Commit Message

Kevin Hao July 14, 2013, 9:02 a.m. UTC
In commit c6e6771b(powerpc: Introduce VSX thread_struct and CONFIG_VSX)
we add a invocation of flush_fp_to_thread() before copying the FPR or
VSR to users. But we already invoke the flush_fp_to_thread() in this
function. So remove one of them.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
---
 arch/powerpc/kernel/signal_64.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox

Patch

diff --git a/arch/powerpc/kernel/signal_64.c b/arch/powerpc/kernel/signal_64.c
index 887e99d..cb833bf 100644
--- a/arch/powerpc/kernel/signal_64.c
+++ b/arch/powerpc/kernel/signal_64.c
@@ -96,8 +96,6 @@  static long setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs,
 	unsigned long msr = regs->msr;
 	long err = 0;
 
-	flush_fp_to_thread(current);
-
 #ifdef CONFIG_ALTIVEC
 	err |= __put_user(v_regs, &sc->v_regs);