提交 891b4fe8 编写于 作者: N Nicholas Piggin 提交者: Michael Ellerman

powerpc/64s: restore_math remove TM test

The TM test in restore_math added by commit dc16b553 ("powerpc:
Always restore FPU/VEC/VSX if hardware transactional memory in use") is
no longer necessary after commit a8318c13 ("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: NNicholas Piggin <npiggin@gmail.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200623234139.2262227-1-npiggin@gmail.com
上级 8c26ab72
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册