]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Make timer_arm and timer_disarm helpers more generic
authorChristoffer Dall <cdall@linaro.org>
Sat, 17 Jun 2017 08:09:19 +0000 (01:09 -0700)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 6 Nov 2017 15:23:11 +0000 (16:23 +0100)
commit0489d3fdac005d76c6810450db438c7e1369879e
tree830c71b4c27c4d90278a225cb36d45ee5a7e3700
parent47e59aabe716ee6dcd535129d1f20f5a1daea1a4
KVM: arm/arm64: Make timer_arm and timer_disarm helpers more generic

We are about to add an additional soft timer to the arch timer state for
a VCPU and would like to be able to reuse the functions to program and
cancel a timer, so we make them slightly more generic and rename to make
it more clear that these functions work on soft timers and not the
hardware resource that this code is managing.

The armed flag on the timer state is only used to assert a condition,
and we don't rely on this assertion in any meaningful way, so we can
simply get rid of this flack and slightly reduce complexity.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
include/kvm/arm_arch_timer.h
virt/kvm/arm/arch_timer.c