KVM: PPC: fix partial application of "exit timing in ticks"
authorStuart Yoder <stuart.yoder@freescale.com>
Tue, 17 May 2011 23:26:00 +0000 (18:26 -0500)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:28 +0000 (13:16 +0300)
When http://www.spinics.net/lists/kvm-ppc/msg02664.html
was applied to produce commit b51e7aa7ed6d8d134d02df78300ab0f91cfff4d2,
the removal of the conversion in add_exit_timing was left out.

Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/timing.c

index 319177df958764f3c1f90fb6ce762fab998b581c..07b6110a4bb74b17ab07b8b3b237d004d2376c16 100644 (file)
@@ -56,15 +56,6 @@ static void add_exit_timing(struct kvm_vcpu *vcpu, u64 duration, int type)
 {
        u64 old;
 
-       do_div(duration, tb_ticks_per_usec);
-       if (unlikely(duration > 0xFFFFFFFF)) {
-               printk(KERN_ERR"%s - duration too big -> overflow"
-                       " duration %lld type %d exit #%d\n",
-                       __func__, duration, type,
-                       vcpu->arch.timing_count_type[type]);
-               return;
-       }
-
        mutex_lock(&vcpu->arch.exit_timing_lock);
 
        vcpu->arch.timing_count_type[type]++;