Skip to content

Commit 891b4fe

Browse files
npigginmpe
authored andcommitted
powerpc/64s: restore_math remove TM test
The TM test in restore_math added by commit dc16b55 ("powerpc: Always restore FPU/VEC/VSX if hardware transactional memory in use") is no longer necessary after commit a8318c1 ("powerpc/tm: Fix restoring FP/VMX facility incorrectly on interrupts"), which removed the cases where restore_math has to restore if TM is active. Signed-off-by: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8c26ab7 commit 891b4fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/powerpc/kernel/process.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,7 @@ void notrace restore_math(struct pt_regs *regs)
530530
{
531531
unsigned long msr;
532532

533-
if (!MSR_TM_ACTIVE(regs->msr) &&
534-
!current->thread.load_fp && !loadvec(current->thread))
533+
if (!current->thread.load_fp && !loadvec(current->thread))
535534
return;
536535

537536
msr = regs->msr;

0 commit comments

Comments
 (0)