]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Sep 2016 11:53:07 +0000 (13:53 +0200)
commit2e338f7e034f12066c78999deff8894c337ae23b
treebf1d0cb3c03de107ae0a147c937c856159e1cdfe
parentabeda47ebb20997aa3c5b4cac7db70f8bea62d7d
Drivers: hv: utils: Use TimeSync samples to adjust the clock after boot.

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>
drivers/hv/hv_util.c