KVM: arm64: timers: Rationalise per-vcpu timer init
authorMarc Zyngier <maz@kernel.org>
Thu, 30 Mar 2023 17:47:49 +0000 (18:47 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Mar 2023 18:01:10 +0000 (19:01 +0100)
commit5591805d2c21b70838b723b71b8ff613de51cfff
treea7cd99b221b7cbeef0b1c2943d3aaec362ccd244
parent680232a94c1289aad25ffae02f2785823763b456
KVM: arm64: timers: Rationalise per-vcpu timer init

The way we initialise our timer contexts may be satisfactory
for two timers, but will be getting pretty annoying with four.

Cleanup the whole thing by removing the code duplication and
getting rid of unused IRQ configuration elements.

Reviewed-by: Colton Lewis <coltonlewis@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230330174800.2677007-10-maz@kernel.org
arch/arm64/kvm/arch_timer.c
include/kvm/arm_arch_timer.h