KVM: arm64: Introduce kvm_counter_compute_delta() helper
authorMarc Zyngier <maz@kernel.org>
Tue, 19 Apr 2022 18:27:49 +0000 (19:27 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 20 Apr 2022 12:24:44 +0000 (13:24 +0100)
commitdaf85a5f6be33788e18ff3efad1d7c3ad66a8cb3
tree008707fd27ba54bb589a748d8f1b6d447c4d2e66
parentb57de4ffd7c6d1247fdaef8437450ab7c1dd4ed0
KVM: arm64: Introduce kvm_counter_compute_delta() helper

Refactor kvm_timer_compute_delta() and extract a helper that
compute the delta (in ns) between a given timer and an arbitrary
value.

No functional change expected.

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