KVM: arm64: Simplify kvm_cpu_has_pending_timer()
mainline inclusion from mainline-v5.19-rc1 commit b57de4ff category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I6YAMV CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b57de4ffd7c6d1247fdaef8437450ab7c1dd4ed0 ------------------------------- 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 Signed-off-by:
Kunkun Jiang <jiangkunkun@huawei.com>
Loading
Please sign in to comment