fix check_tsc_warp bug
PATCH 1/1 fix check_tsc_warp bug
I wasn't able to easily test the check_tsc_warp patch on a machine which did have skew, so I synthesized skew and discovered this bug.
Signed-off-by Dan Magenheimer <[email protected]>
xen/arch/x86/time.c +1 -1
@@ -1494,7 +1494,7 @@ void check_tsc_warp(unsigned long tsc_khif (unlikely (prev > now) ) {spin_lock (&sync_lock); -if ( *max_warp > prev - now ) +if ( *max_warp < prev - now ) *max_warp = prev - now;spin_unlock (&sync_lock); }