]> git.baikalelectronics.ru Git - kernel.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)
commit127ad6065295296e5959b4e2e56d83e76513b2a7
treeb4c0e43a6125510b84d4e7efcde674a527ff0ae5
parentda0e636ed368d795afcd7e87ddcbfd476cba4949
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