WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.1-testing] hvm: hpet: Tidy up hpet_to_ns_limit ca

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] hvm: hpet: Tidy up hpet_to_ns_limit calculation.
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 14 Jan 2008 09:20:33 -0800
Delivery-date: Mon, 14 Jan 2008 09:26:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1200049673 0
# Node ID 0a8ce61dead86e598fe31ae4cf256f39ee7ee49d
# Parent  e3b73c4f44de29f4b9a93133f4f22b74811efa19
hvm: hpet: Tidy up hpet_to_ns_limit calculation.
Suggested by Haitao Shan @ Intel.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   16707:51aa2f884f6446b7e376a749ead8038359b70ec1
xen-unstable date:        Fri Jan 11 11:01:36 2008 +0000
---
 xen/arch/x86/hvm/hpet.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r e3b73c4f44de -r 0a8ce61dead8 xen/arch/x86/hvm/hpet.c
--- a/xen/arch/x86/hvm/hpet.c   Fri Jan 11 11:07:11 2008 +0000
+++ b/xen/arch/x86/hvm/hpet.c   Fri Jan 11 11:07:53 2008 +0000
@@ -479,7 +479,7 @@ void hpet_init(struct vcpu *v)
     h->tsc_freq = ticks_per_sec(v);
 
     h->hpet_to_ns_scale = ((S_TO_NS * TSC_PER_HPET_TICK) << 10) / h->tsc_freq;
-    h->hpet_to_ns_limit = (~0ULL >> 1) / h->hpet_to_ns_scale;
+    h->hpet_to_ns_limit = ~0ULL / h->hpet_to_ns_scale;
 
     /* 64-bit main counter; 3 timers supported; LegacyReplacementRoute. */
     h->hpet.capability = 0x8086A201ULL;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] hvm: hpet: Tidy up hpet_to_ns_limit calculation., Xen patchbot-3.1-testing <=