All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: PPC: fix partial application of "exit timing in ticks"
@ 2011-05-17 23:26 Stuart Yoder
  2011-05-19  9:36 ` [PATCH] KVM: PPC: fix partial application of "exit timing in Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Stuart Yoder @ 2011-05-17 23:26 UTC (permalink / raw)
  To: kvm-ppc

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>
---
 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 319177d..07b6110 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)
 {
 	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]++;
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: PPC: fix partial application of "exit timing in
  2011-05-17 23:26 [PATCH] KVM: PPC: fix partial application of "exit timing in ticks" Stuart Yoder
@ 2011-05-19  9:36 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2011-05-19  9:36 UTC (permalink / raw)
  To: kvm-ppc

On 05/18/2011 01:26 AM, Stuart Yoder wrote:
> 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.

Thanks, applied to kvm-ppc-next.


Alex


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-19  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-17 23:26 [PATCH] KVM: PPC: fix partial application of "exit timing in ticks" Stuart Yoder
2011-05-19  9:36 ` [PATCH] KVM: PPC: fix partial application of "exit timing in Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.