Searched hist:33818 (Results 1 - 1 of 1) sorted by relevance
/freebsd-10.1-release/sys/kern/ | ||
H A D | kern_time.c | diff 33818 Wed Feb 25 02:10:32 MST 1998 bde Fixed the calculation of `delta' in settime(). We once set all times consistently wrong (up to 1 tick too late), but recent changes fixed the setting of the main clock, making other times inconsistent. The inconsistencies tended to show up as a negative resource usage for the process that set the time. Fixed the check for setting the clock backwards. A stale timestamp (`time') was checked, so it was possible to set the clock backwards by up to almost 1 tick. Until recently, this bug was compensated for by setting the clock consistently wrong. Merged the comment about setting the clock backwards from Lite2. Removed latency micro-optimizations/speed pessimizations in settime(). microtime() and set_timecounter() are relatively expensive, and they must be called together with clock updates blocked to get a consistent `delta', so significant latency optimizations are not possible. Removed some stale comments. |
Completed in 65 milliseconds