Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 746874d3 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Michael Ellerman
Browse files

powerpc: Remove redundant FP/Altivec giveup code



__giveup_vsx() already calls those two functions.

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 6a303833
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -374,10 +374,6 @@ void enable_kernel_vsx(void)
		 */
		 */
		if(!msr_tm_active(cpumsr) && msr_tm_active(current->thread.regs->msr))
		if(!msr_tm_active(cpumsr) && msr_tm_active(current->thread.regs->msr))
			return;
			return;
		if (current->thread.regs->msr & MSR_FP)
			__giveup_fpu(current);
		if (current->thread.regs->msr & MSR_VEC)
			__giveup_altivec(current);
		__giveup_vsx(current);
		__giveup_vsx(current);
	}
	}
}
}