summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-08-16 09:01:16 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-16 15:34:42 +0300
commit746874d31cd1173f2dd234c1a5f692939afe0b71 (patch)
tree02794cdbf8b5ffa3995c1910c27e018c89a0aaed /arch/powerpc
parent6a303833b5e3acbb4c97cc11cc688650d070da19 (diff)
downloadlinux-746874d31cd1173f2dd234c1a5f692939afe0b71.tar.xz
powerpc: Remove redundant FP/Altivec giveup code
__giveup_vsx() already calls those two functions. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/process.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index cd476e338768..32b58648052f 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -374,10 +374,6 @@ void enable_kernel_vsx(void)
*/
if(!msr_tm_active(cpumsr) && msr_tm_active(current->thread.regs->msr))
return;
- if (current->thread.regs->msr & MSR_FP)
- __giveup_fpu(current);
- if (current->thread.regs->msr & MSR_VEC)
- __giveup_altivec(current);
__giveup_vsx(current);
}
}