diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-11 11:01:36 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-11 11:01:36 +0000 |
commit | 93c129e9bda29bc15c1cd79cb7ef609cdfa7a1dd (patch) | |
tree | 30aea6cfa0532592ab5e032d0c322d13e1be8d83 | |
parent | 9eb143df009f237343831990a5a690cd255e0044 (diff) | |
download | xen-93c129e9bda29bc15c1cd79cb7ef609cdfa7a1dd.tar.gz xen-93c129e9bda29bc15c1cd79cb7ef609cdfa7a1dd.tar.bz2 xen-93c129e9bda29bc15c1cd79cb7ef609cdfa7a1dd.zip |
hvm: hpet: Tidy up hpet_to_ns_limit calculation.
Suggested by Haitao Shan @ Intel.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
-rw-r--r-- | xen/arch/x86/hvm/hpet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c index 72d1ccd4a7..f6845755a0 100644 --- a/xen/arch/x86/hvm/hpet.c +++ b/xen/arch/x86/hvm/hpet.c @@ -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; |