From: Benjamin Herrenschmidt Date: Wed, 16 Aug 2017 06:01:16 +0000 (+1000) Subject: powerpc: Remove redundant FP/Altivec giveup code X-Git-Tag: Ubuntu-5.2.0-15.16~6075^2~196 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=746874d31cd1173f2dd234c1a5f692939afe0b71;p=mirror_ubuntu-eoan-kernel.git powerpc: Remove redundant FP/Altivec giveup code __giveup_vsx() already calls those two functions. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Michael Ellerman --- 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); } }