summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2016-09-15 19:04:46 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-09-20 15:56:45 +1000
commit49d09bf2a66f4b5a6eabefb0d4c0f03f21810553 (patch)
tree9c8bb1a0c748924d1f6072de09d17357834a3941 /arch/powerpc/perf
parent18e3f56b1cacb96017e2a66844ceceefabf6e7bc (diff)
powerpc/64s: Optimise MSR handling in exception handling
mtmsrd with L=1 only affects MSR_EE and MSR_RI bits, and we always know what state those bits are, so the kernel MSR does not need to be loaded when modifying them. mtmsrd is often in the critical execution path, so avoiding dependency on even L1 load is noticable. On a POWER8 this saves about 3 cycles from the syscall path, and possibly a few from other exception returns (not measured). Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf')
0 files changed, 0 insertions, 0 deletions