summaryrefslogtreecommitdiffstats
path: root/include/kvm/arm_arch_timer.h
diff options
context:
space:
mode:
authorChristoffer Dall <cdall@linaro.org>2017-06-17 10:09:19 +0200
committerChristoffer Dall <christoffer.dall@linaro.org>2017-11-06 16:23:11 +0100
commit8409a06f2a2c0baeb6e6ff020b2c5a4592b3078d (patch)
tree830c71b4c27c4d90278a225cb36d45ee5a7e3700 /include/kvm/arm_arch_timer.h
parentKVM: arm/arm64: Check that system supports split eoi/deactivate (diff)
downloadlinux-8409a06f2a2c0baeb6e6ff020b2c5a4592b3078d.tar.xz
linux-8409a06f2a2c0baeb6e6ff020b2c5a4592b3078d.zip
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>
Diffstat (limited to 'include/kvm/arm_arch_timer.h')
-rw-r--r--include/kvm/arm_arch_timer.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h
index f0053f884b4a..d0beae98f755 100644
--- a/include/kvm/arm_arch_timer.h
+++ b/include/kvm/arm_arch_timer.h
@@ -48,9 +48,6 @@ struct arch_timer_cpu {
/* Work queued with the above timer expires */
struct work_struct expired;
- /* Background timer active */
- bool armed;
-
/* Is the timer enabled */
bool enabled;
};