summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/timesync.c
AgeCommit message (Collapse)Author
2022-12-23aux/timesync: don't bind #r twice (already done in inittime())cinap_lenrek
2020-05-02make bind(2) error handling consistentcinap_lenrek
The mount() and bind() syscalls return -1 on error, and the mountid sequence number on success. The manpage states that the mountid sequence number is a positive integer, but the kernels implementation currently uses a unsigned 32-bit integer and does not guarantee that the mountid will not become negative. Most code just cares about the error, so test for the -1 error value only.
2020-03-08aux/timesync: open /proc/n/ctl with OWRITE, not ORDWRcinap_lenrek
2016-11-17cmd: remove a bit of unused stuffftrvxmtrx
2013-06-25timesync: reduce the frequency tolerance from half to double the system clockcinap_lenrek
the frequency tolerance used by timesync was from a 10th to 10 times the frequency of the system clock! switching a system from tsc to pic timer changes the system clock frequency from 300MHz to arround 1.8Ghz on a x200s laptop resulting in time running way too slow or way too fast. so we change timesync to only accept frequencies from half to double the system clock which still seems huge, but at least catches the case above resulting in timesync ignoring the old frequency file.
2011-08-17timesync: do less aggressive clock sampling (issue #73)cinap_lenrek
2011-06-15timesync: let timesync set the rtc with respect to gmtdeltacinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen