mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 16:56:49 +07:00
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>
This commit is contained in:
parent
6a303833b5
commit
746874d31c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user