KVM: arm/arm64: Cleanup the arch timer code's irqchip checking
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 27 Sep 2016 19:08:04 +0000 (21:08 +0200)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:37 +0000 (07:49 -0700)
commitb22e7df2d85fcbe8b36bab909b98c3d0239e69e6
treea7d58a10ebc8b3370696c9e6e4fbfb97982eb037
parentd824ca52abd020a36948d12f2c6704ea2ae12513
KVM: arm/arm64: Cleanup the arch timer code's irqchip checking

Currently we check if we have an in-kernel irqchip and if the vgic was
properly implemented several places in the arch timer code.  But, we
already predicate our enablement of the arm timers on having a valid
and initialized gic, so we can simply check if the timers are enabled or
not.

This also gets rid of the ugly "error that's not an error but used to
signal that the timer shouldn't poke the gic" construct we have.

Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/arch_timer.c