]> xenbits.xensource.com Git - xen.git/commit
x86/time: use correct (local) time stamp in constant-TSC calibration fast path
authorJan Beulich <jbeulich@suse.com>
Tue, 14 Jun 2016 13:08:47 +0000 (15:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Jun 2016 13:08:47 +0000 (15:08 +0200)
commitb64438c7c1495a7580d1bb9d8ba644f3705e1ffb
tree6b693eb589cb6b6474e83ab80fd9e49568f2ab0a
parent5e02972646132ad98c365ebfcfcb43b40a0dde36
x86/time: use correct (local) time stamp in constant-TSC calibration fast path

This looks like a copy and paste mistake in commit 1b6a99892d ("x86:
Simpler time handling when TSC is constant across all power saving
states"), responsible for occasional many-microsecond cross-CPU skew of
what NOW() returns.

Also improve the correlation between local TSC and stime stamps
obtained at the end of the two calibration handlers: Compute the stime
one from the TSC one, instead of doing another rdtsc() for that
compuation.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/time.c