KVM: PPC: Book3S HV P9: Optimise timebase reads

Reduce the number of mfTB executed by passing the current timebase
around entry and exit code rather than read it multiple times.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211123095231.1036501-25-npiggin@gmail.com
This commit is contained in:
Nicholas Piggin 2021-11-23 19:52:02 +10:00 • committed by Michael Ellerman
commit cb2553a093
3 changed files with 65 additions and 58 deletions