KVM: arm/arm64: timer: Allow the timer to control the active state
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 23 Jun 2014 12:59:13 +0000 (13:59 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 12 Aug 2015 10:28:26 +0000 (11:28 +0100)
commitf120cd6533d21075ab103ae6c225b1697853660d
tree1b1cd6e41c196c3aa3d5fdfde0d6e37b6c810d8e
parent773299a570725d1f253d6046cd6475209b0dcd55
KVM: arm/arm64: timer: Allow the timer to control the active state

In order to remove the crude hack where we sneak the masked bit
into the timer's control register, make use of the phys_irq_map
API control the active state of the interrupt.

This causes some limited changes to allow for potential error
propagation.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/reset.c
arch/arm64/kvm/reset.c
include/kvm/arm_arch_timer.h
virt/kvm/arm/arch_timer.c