[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Cx fix - Add wrap-back calculation for 24b PM timer ticks.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1211617420 -3600 # Node ID c4506386b299b481c6576676aac32c197b997d33 # Parent 6c4cab061af414160b3fdafc7ca8855e3dc44af1 Cx fix - Add wrap-back calculation for 24b PM timer ticks. Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx> --- xen/arch/x86/acpi/cpu_idle.c | 2 ++ 1 files changed, 2 insertions(+) diff -r 6c4cab061af4 -r c4506386b299 xen/arch/x86/acpi/cpu_idle.c --- a/xen/arch/x86/acpi/cpu_idle.c Sat May 24 09:27:03 2008 +0100 +++ b/xen/arch/x86/acpi/cpu_idle.c Sat May 24 09:23:40 2008 +0100 @@ -173,6 +173,8 @@ static inline u32 ticks_elapsed(u32 t1, { if ( t2 >= t1 ) return (t2 - t1); + else if ( !(acpi_gbl_FADT.flags & ACPI_FADT_32BIT_TIMER) ) + return (((0x00FFFFFF - t1) + t2) & 0x00FFFFFF); else return ((0xFFFFFFFF - t1) + t2); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |