ia64/xen-unstable

changeset 17721:c4506386b299

Cx fix - Add wrap-back calculation for 24b PM timer ticks.

Signed-off-by: Wei Gang <gang.wei@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat May 24 09:23:40 2008 +0100 (2008-05-24)
parents 6c4cab061af4
children 4c1bb3e4a5a0
files xen/arch/x86/acpi/cpu_idle.c
line diff
     1.1 --- a/xen/arch/x86/acpi/cpu_idle.c	Sat May 24 09:27:03 2008 +0100
     1.2 +++ b/xen/arch/x86/acpi/cpu_idle.c	Sat May 24 09:23:40 2008 +0100
     1.3 @@ -173,6 +173,8 @@ static inline u32 ticks_elapsed(u32 t1, 
     1.4  {
     1.5      if ( t2 >= t1 )
     1.6          return (t2 - t1);
     1.7 +    else if ( !(acpi_gbl_FADT.flags & ACPI_FADT_32BIT_TIMER) )
     1.8 +        return (((0x00FFFFFF - t1) + t2) & 0x00FFFFFF);
     1.9      else
    1.10          return ((0xFFFFFFFF - t1) + t2);
    1.11  }