summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/signal_64.c
diff options
context:
space:
mode:
authorKevin Hao2013-07-14 11:02:04 +0200
committerBenjamin Herrenschmidt2013-08-14 06:59:38 +0200
commit662499d04b6bc73d0ecab0ab876bacd5bbe7d6a7 (patch)
treed5075c959038c452fe80db6db06b286bdda78083 /arch/powerpc/kernel/signal_64.c
parentpowerpc/mpc85xx: Only emulate the unimplemented FP instructions on corenet64 (diff)
downloadkernel-qcow2-linux-662499d04b6bc73d0ecab0ab876bacd5bbe7d6a7.tar.gz
kernel-qcow2-linux-662499d04b6bc73d0ecab0ab876bacd5bbe7d6a7.tar.xz
kernel-qcow2-linux-662499d04b6bc73d0ecab0ab876bacd5bbe7d6a7.zip
powerpc: Remove the redundant flush_fp_to_thread() in setup_sigcontext()
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> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/signal_64.c')
-rw-r--r--arch/powerpc/kernel/signal_64.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/signal_64.c b/arch/powerpc/kernel/signal_64.c
index d0106b8a7484..f93ec2835a13 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);