]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen/time: fix PV clock resolution
authorRoger Pau Monné <royger@FreeBSD.org>
Mon, 2 May 2016 16:16:08 +0000 (16:16 +0000)
committerRoger Pau Monné <royger@FreeBSD.org>
Mon, 2 May 2016 16:16:08 +0000 (16:16 +0000)
commitf8af716b04ae27b97393e5c1959150f543fe301f
treea7425e2ba2299afac89a054d140754f08c36fcd9
parenteac636b0ce5cb889aa72628f18169cd58ba3697d
xen/time: fix PV clock resolution

The current resolution of the Xen PV clock is too high, which causes an
adjustment of 5s to be applied to it. Reduce the resolution to be the same
as the RTC plus one, so it's always selected as the best source when
available on x86.

Also don't reset the clock on resume, it's pointless and discards any
previous adjustments.

Sponsoted by: Citrix Systems R&D
sys/dev/xen/timer/timer.c