KVM: arm64: Simplify kvm_cpu_has_pending_timer()
authorMarc Zyngier <maz@kernel.org>
Tue, 19 Apr 2022 18:27:48 +0000 (19:27 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 20 Apr 2022 12:24:44 +0000 (13:24 +0100)
commitb57de4ffd7c6d1247fdaef8437450ab7c1dd4ed0
treeb74b519f305cd05d4ac183551f72bf3014e2a5b2
parent7d26b0516a0df5888fd1486054bc5159f6c0b88f
KVM: arm64: Simplify kvm_cpu_has_pending_timer()

kvm_cpu_has_pending_timer() ends up checking all the possible
timers for a wake-up cause. However, we already check for
pending interrupts whenever we try to wake-up a vcpu, including
the timer interrupts.

Obviously, doing the same work twice is once too many. Reduce
this helper to almost nothing, but keep it around, as we are
going to make use of it soon.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220419182755.601427-4-maz@kernel.org
arch/arm64/kvm/arch_timer.c
arch/arm64/kvm/arm.c
include/kvm/arm_arch_timer.h