[PATCH 1/1] staging: hv: Add Time Sync feature to hv_utils module

Haiyang Zhang haiyangz at microsoft.com
Thu May 6 01:42:01 UTC 2010


> Why a maximum of 50 samples?
After reboot the flag ICTIMESYNCFLAG_SYNC is included in the 
first time message after the timesync channel is opened. Since the 
hv_utils module is loaded after hv_vmbus, the first message is usually
missed. The other thing is, systime is automatically set to emulated 
hardware clock which may not be UTC time or the same time 
zone. So, to override these effects, we use the first 50 time samples 
for initial system time setting.

> It might be better to do something like this
> so the ns_to_timespec isn't performe when unnecessary.
Thanks for the optimization, I will put it into the code.

- Haiyang


More information about the devel mailing list