diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2020-06-24 09:41:37 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-07-16 13:00:24 +1000 |
commit | 891b4fe8fe3d09f20948b391f24c9fc5b7580a2b (patch) | |
tree | 098016ead14d1e6d4b9b24d65f62f8fb68edcc6a /arch/powerpc/kernel/process.c | |
parent | 8c26ab72663b4affc31e47cdf77d61d0172d1033 (diff) | |
download | lwn-891b4fe8fe3d09f20948b391f24c9fc5b7580a2b.tar.gz lwn-891b4fe8fe3d09f20948b391f24c9fc5b7580a2b.zip |
powerpc/64s: restore_math remove TM test
The TM test in restore_math added by commit dc16b553c949e ("powerpc:
Always restore FPU/VEC/VSX if hardware transactional memory in use") is
no longer necessary after commit a8318c13e79ba ("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 <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200623234139.2262227-1-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 4650b9bb217f..02d691bda9b6 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -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; |