[RFC PATCH 6/7] KVM: arm/arm64: Remove unnecessary timer BUG_ON operations
Christoffer Dall
christoffer.dall at linaro.org
Sat Dec 10 12:47:11 PST 2016
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 at 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
More information about the linux-arm-kernel
mailing list