diff options
author | Stuart Yoder <stuart.yoder@freescale.com> | 2011-05-17 19:26:00 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-07-12 06:16:28 -0400 |
commit | 24294b9a3fbe00289c039fb3e80087be66b8c415 (patch) | |
tree | 2199e25d9944af4b13940ef9f27c36b082146d96 /arch/powerpc/kvm | |
parent | 45bd07b9d5202c910b31c92bd15572b560198c26 (diff) |
KVM: PPC: fix partial application of "exit timing in ticks"
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>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/timing.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/powerpc/kvm/timing.c b/arch/powerpc/kvm/timing.c index 319177df9587..07b6110a4bb7 100644 --- a/arch/powerpc/kvm/timing.c +++ b/arch/powerpc/kvm/timing.c | |||
@@ -56,15 +56,6 @@ static void add_exit_timing(struct kvm_vcpu *vcpu, u64 duration, int type) | |||
56 | { | 56 | { |
57 | u64 old; | 57 | u64 old; |
58 | 58 | ||
59 | do_div(duration, tb_ticks_per_usec); | ||
60 | if (unlikely(duration > 0xFFFFFFFF)) { | ||
61 | printk(KERN_ERR"%s - duration too big -> overflow" | ||
62 | " duration %lld type %d exit #%d\n", | ||
63 | __func__, duration, type, | ||
64 | vcpu->arch.timing_count_type[type]); | ||
65 | return; | ||
66 | } | ||
67 | |||
68 | mutex_lock(&vcpu->arch.exit_timing_lock); | 59 | mutex_lock(&vcpu->arch.exit_timing_lock); |
69 | 60 | ||
70 | vcpu->arch.timing_count_type[type]++; | 61 | vcpu->arch.timing_count_type[type]++; |