[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] hvm: hpet: Tidy up hpet_to_ns_limit calculation.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1200049296 0 # Node ID 51aa2f884f6446b7e376a749ead8038359b70ec1 # Parent f2b4779623d26e30ebd693a1cfccfe1162243191 hvm: hpet: Tidy up hpet_to_ns_limit calculation. Suggested by Haitao Shan @ Intel. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- xen/arch/x86/hvm/hpet.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r f2b4779623d2 -r 51aa2f884f64 xen/arch/x86/hvm/hpet.c --- a/xen/arch/x86/hvm/hpet.c Fri Jan 11 10:59:48 2008 +0000 +++ b/xen/arch/x86/hvm/hpet.c Fri Jan 11 11:01:36 2008 +0000 @@ -551,7 +551,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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |