[RFC PATCH 6/7] KVM: arm/arm64: Remove unnecessary timer BUG_ON operations

Christoffer Dall
2016-12-10T20:47:11Z

We don't need BUG_ON operations for the timer code here anymore as this
is not a likely case to get wrong and they are in the critical path so
may potentially add overhead.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
---
virt/kvm/arm/arch_timer.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c
index beede1b..242728a 100644
--- a/virt/kvm/arm/arch_timer.c
+++ b/virt/kvm/arm/arch_timer.c
@@ -367,8 +367,6 @@ void kvm_timer_sync_hwstate(struct kvm_vcpu *vcpu)
{
struct arch_timer_cpu *timer = &vcpu->arch.timer_cpu;

- BUG_ON(timer_is_armed(timer));
-
/*
* If we entered the guest with the timer output asserted we have to
* check if the guest has modified the timer so that we should lower
--
2.9.0