ia64/xen-unstable

changeset 16707:51aa2f884f64

hvm: hpet: Tidy up hpet_to_ns_limit calculation.
Suggested by Haitao Shan @ Intel.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 11 11:01:36 2008 +0000 (2008-01-11)
parents f2b4779623d2
children a30aabe3c84a
files xen/arch/x86/hvm/hpet.c
line diff
     1.1 --- a/xen/arch/x86/hvm/hpet.c	Fri Jan 11 10:59:48 2008 +0000
     1.2 +++ b/xen/arch/x86/hvm/hpet.c	Fri Jan 11 11:01:36 2008 +0000
     1.3 @@ -551,7 +551,7 @@ void hpet_init(struct vcpu *v)
     1.4      h->tsc_freq = ticks_per_sec(v);
     1.5  
     1.6      h->hpet_to_ns_scale = ((S_TO_NS * TSC_PER_HPET_TICK) << 10) / h->tsc_freq;
     1.7 -    h->hpet_to_ns_limit = (~0ULL >> 1) / h->hpet_to_ns_scale;
     1.8 +    h->hpet_to_ns_limit = ~0ULL / h->hpet_to_ns_scale;
     1.9  
    1.10      /* 64-bit main counter; 3 timers supported; LegacyReplacementRoute. */
    1.11      h->hpet.capability = 0x8086A201ULL;