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

Signed-off-by: Wei Gang <gang.wei@intel.com>
This commit is contained in:
Keir Fraser committed 2008-05-24 09:23:40 +01:00
1 parent e1845bbe73
commit 74c4a80c2b
1 file changed
+2
+2
View File
@@ -173,6 +173,8 @@ static inline u32 ticks_elapsed(u32 t1, u32 t2)
{
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);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.