diff options
author | phk <phk@FreeBSD.org> | 2002-04-15 12:23:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-15 12:23:11 +0000 |
commit | b6bf4c07cfa2b20a71ec5c6e20bf929d299043c5 (patch) | |
tree | 733a8aba038268bb9bbfe0becf82c0d69fb2477b /sys/powerpc | |
parent | 3bc1e338fc199c90b88b05b395b5a427f9497a15 (diff) | |
download | FreeBSD-src-b6bf4c07cfa2b20a71ec5c6e20bf929d299043c5.zip FreeBSD-src-b6bf4c07cfa2b20a71ec5c6e20bf929d299043c5.tar.gz |
Improve the implementation of adjtime(2).
Apply the change as a continuous slew rather than as a series of
discrete steps and make it possible to adjust arbitraryly huge
amounts of time in either direction.
In practice this is done by hooking into the same once-per-second
loop as the NTP PLL and setting a suitable frequency offset deducting
the amount slewed from the remainder. If the remaining delta is
larger than 1 second we slew at 5000PPM (5msec/sec), for a delta
less than a second we slew at 500PPM (500usec/sec) and for the last
one second period we will slew at whatever rate (less than 500PPM)
it takes to eliminate the delta entirely.
The old implementation stepped the clock a number of microseconds
every HZ to acheive the same effect, using the same rates of change.
Eliminate the global variables tickadj, tickdelta and timedelta and
their various use and initializations.
This removes the most significant obstacle to running timecounter and
NTP housekeeping from a timeout rather than hardclock.
Diffstat (limited to 'sys/powerpc')
0 files changed, 0 insertions, 0 deletions