summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-12-16 17:17:20 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-12-16 17:17:20 +0000
commit79e58277cbefd21ba134443f11fc384fe0a22d50 (patch)
treed7a14ca6d19288749a169636545e14a33aa7548a /sys/dev
parent500b16fcf917fa99a6d36a772e339c048febeeb2 (diff)
When running on Azure, the initial timesync "sync" message is not correct,
ignore it and only use the timesync "sample" messages. OK mikeb@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pv/hypervic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pv/hypervic.c b/sys/dev/pv/hypervic.c
index 9ced4846d85..079a8d27983 100644
--- a/sys/dev/pv/hypervic.c
+++ b/sys/dev/pv/hypervic.c
@@ -485,8 +485,7 @@ hv_timesync(void *arg)
break;
case VMBUS_ICMSG_TYPE_TIMESYNC:
msg = (struct vmbus_icmsg_timesync *)hdr;
- if (msg->ic_tsflags == VMBUS_ICMSG_TS_FLAG_SYNC ||
- msg->ic_tsflags == VMBUS_ICMSG_TS_FLAG_SAMPLE) {
+ if (msg->ic_tsflags == VMBUS_ICMSG_TS_FLAG_SAMPLE) {
microtime(&sc->sc_sensor.tv);
nanotime(&guest);
tns = (msg->ic_hvtime - 116444736000000000LL) * 100;