From: Benjamin Herrenschmidt Date: Wed, 16 Aug 2017 06:01:16 +0000 (+1000) Subject: powerpc: Remove redundant FP/Altivec giveup code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=746874d31cd1173f2dd234c1a5f692939afe0b71;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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); } }