]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11d41c37dab196881d38038060d9ccdecddf1857
treeb74b519f305cd05d4ac183551f72bf3014e2a5b2
parent0cc8b21cf8b40a8f637dd0619ceb071075810c12
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