]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
Drivers: hv: utils: Use TimeSync samples to adjust the clock after boot.
authorAlex Ng <alexng@messages.microsoft.com>
Thu, 8 Sep 2016 12:24:13 +0000 (05:24 -0700)
committerLuis Henriques <luis.henriques@canonical.com>
Fri, 20 Jan 2017 13:04:58 +0000 (13:04 +0000)
commitb938c0f2ab1668dbe43868bdc51787d0b0e10845
treebd1fba3cb74e1eb9a9ffbe8fa9228160786c8ad4
parent4422ea0b79b97fa7c0dcaa917a35b279ffa25b18
Drivers: hv: utils: Use TimeSync samples to adjust the clock after boot.

BugLink: http://bugs.launchpad.net/bugs/1650059
Only the first 50 samples after boot were being used to discipline the
clock. After the first 50 samples, any samples from the host were ignored
and the guest clock would eventually drift from the host clock.

This patch allows TimeSync-enabled guests to continuously synchronize the
clock with the host clock, even after the first 50 samples.

Signed-off-by: Alex Ng <alexng@messages.microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2e338f7e034f12066c78999deff8894c337ae23b)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/hv/hv_util.c