From: Keir Fraser Date: Fri, 11 Jan 2008 11:07:53 +0000 (+0000) Subject: hvm: hpet: Tidy up hpet_to_ns_limit calculation. X-Git-Tag: 3.1.3-rc1~14 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0105b84e95c54f7f413ab6a2764fc3143918b24f;p=people%2Fvhanquez%2Fxen.git hvm: hpet: Tidy up hpet_to_ns_limit calculation. Suggested by Haitao Shan @ Intel. Signed-off-by: Keir Fraser xen-unstable changeset: 16707:51aa2f884f6446b7e376a749ead8038359b70ec1 xen-unstable date: Fri Jan 11 11:01:36 2008 +0000 --- diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c index af101ce06..2815e6f97 100644 --- a/xen/arch/x86/hvm/hpet.c +++ b/xen/arch/x86/hvm/hpet.c @@ -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;