linux-stable/arch/powerpc/math-emu
Nicholas Piggin 59dc5bfca0 powerpc/64s: avoid reloading (H)SRR registers if they are still valid
When an interrupt is taken, the SRR registers are set to return to where
it left off. Unless they are modified in the meantime, or the return
address or MSR are modified, there is no need to reload these registers
when returning from interrupt.

Introduce per-CPU flags that track the validity of SRR and HSRR
registers. These are cleared when returning from interrupt, when
using the registers for something else (e.g., OPAL calls), when
adjusting the return address or MSR of a context, and when context
switching (which changes the return address and MSR).

This improves the performance of interrupt returns.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Fold in fixup patch from Nick]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210617155116.2167984-5-npiggin@gmail.com
2021-06-25 00:06:55 +10:00
..
fabs.c
fadd.c
fadds.c
fcmpo.c
fcmpu.c
fctiw.c
fctiwz.c
fdiv.c
fdivs.c
fmadd.c
fmadds.c
fmr.c
fmsub.c
fmsubs.c
fmul.c
fmuls.c
fnabs.c
fneg.c
fnmadd.c
fnmadds.c
fnmsub.c
fnmsubs.c
fre.c
fres.c
frsp.c
frsqrte.c
frsqrtes.c
fsel.c
fsqrt.c
fsqrts.c
fsub.c
fsubs.c
lfd.c
lfs.c
Makefile powerpc: math-emu: remove unneeded header search paths 2019-01-14 20:39:27 +11:00
math.c powerpc/64s: avoid reloading (H)SRR registers if they are still valid 2021-06-25 00:06:55 +10:00
math_efp.c powerpc/64s: avoid reloading (H)SRR registers if they are still valid 2021-06-25 00:06:55 +10:00
mcrfs.c
mffs.c
mtfsb0.c
mtfsb1.c
mtfsf.c
mtfsfi.c
stfd.c
stfiwx.c
stfs.c
udivmodti4.c