summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_bus.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-08-12 17:17:05 +0000
committerjkim <jkim@FreeBSD.org>2010-08-12 17:17:05 +0000
commitf9341f06d7ef1504c22d8498de4139effecd1f33 (patch)
treec5631ec00d3fbc26ce5be0735cb9d007328c45b6 /sys/kern/subr_bus.c
parent6c415f8b84db102df1fff3b142caeb1d26dfc68d (diff)
downloadFreeBSD-src-f9341f06d7ef1504c22d8498de4139effecd1f33.zip
FreeBSD-src-f9341f06d7ef1504c22d8498de4139effecd1f33.tar.gz
Add the half of time-of-day clock resolution when we adjust system time from
time-of-day clock or vice versa. For x86 systems, RTC resolution is one second and we used to lose up to one second whenever we initialize system time from RTC or write system time back to RTC. With this change, margin of error per conversion is roughly between -0.5 and +0.5 second rather than between -1 and 0 second. Note that it does not take care of errors from getnanotime(9) (which is up to 1/hz second) or CLOCK_GETTIME() latency. These are just too expensive to correct and it is not worthy of the cost.
Diffstat (limited to 'sys/kern/subr_bus.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud