Skip to content

Commit

Permalink
powerpc/64s: restore_math remove TM test
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
npiggin authored and mpe committed Jul 16, 2020
1 parent 8c26ab7 commit 891b4fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/powerpc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,7 @@ void notrace restore_math(struct pt_regs *regs)
{
unsigned long msr;

if (!MSR_TM_ACTIVE(regs->msr) &&
!current->thread.load_fp && !loadvec(current->thread))
if (!current->thread.load_fp && !loadvec(current->thread))
return;

msr = regs->msr;
Expand Down

0 comments on commit 891b4fe

Please sign in to comment.