]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: PPC: Book3S HV P9: Use host timer accounting to avoid decrementer read
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:51:42 +0000 (19:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:08:56 +0000 (21:08 +1100)
commit4ebbd075bcde7884e078d4360510b989f559bfec
treeb4c0e43a6125510b84d4e7efcde674a527ff0ae5
parent5955c7469a73033f607ebd6d418058943fe13dd3
KVM: PPC: Book3S HV P9: Use host timer accounting to avoid decrementer read

There is no need to save away the host DEC value, as it is derived
from the host timer subsystem which maintains the next timer time,
so it can be restored from there.

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-5-npiggin@gmail.com
arch/powerpc/include/asm/time.h
arch/powerpc/kernel/time.c
arch/powerpc/kvm/book3s_hv.c