#
eef633a7 |
| 30-May-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Mistyped and lost a '&' in previous commit.
|
#
fe712246 |
| 30-May-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Don't forget to factor in the boottime when we calculate PPS timestamps.
Submitted by: Akira Watanabe <akira@myaw.ei.meisei-u.ac.jp>
|
#
48e5da55 |
| 03-May-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Initialize time_second to 1 instead of zero to pacify slightly bogus arp code.
Various minor style fixes from BDE.
|
#
aed05564 |
| 01-May-2002 |
Peter Wemm <peter@FreeBSD.org> |
kern_tc.c doesn't use <machine/psl.h>, and having this #include breaks other platforms.
|
#
39acc78a |
| 30-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Brucifixion ? Yes, out that door, row on the left, one patch each.
Many thanks to: bde
|
#
6b00cf46 |
| 28-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Stylistic sweep through the timecounter code. Renovate comments.
|
#
d25917e8 |
| 28-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Don't screw up our uptime with historical dates.
|
#
f5d157fb |
| 27-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Explain magic number.
Add magic date no explanation.
Add a delta which was lost in transit yesterday which prevented other timecounters from actually being used.
|
#
f175569a |
| 27-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make the dummy timecounter actually tick or we will never get anyhere.
|
#
62efba6a |
| 26-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Now that the private parts of timecounters are no longer being fingered by other bits of code, split struct timecounter into two.
struct timecounter contains just the bits which pertains to the hard
Now that the private parts of timecounters are no longer being fingered by other bits of code, split struct timecounter into two.
struct timecounter contains just the bits which pertains to the hardware counter and the reading of it.
struct timehands (as in "the hands on a clock") contains all the ugly bit fidling stuff. Statically compile ten timehands.
This commit is the functional part. A later cosmetic patch will rename various variables and fieldnames.
show more ...
|
#
b4a1d0de |
| 26-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Hide the private parts of timecounter from a couple of places that don't really need to know the gory details.
|
#
7bf758bf |
| 26-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Simplify the RFC2783 and PPS_SYNC timestamp collection API.
|
#
9e1b5510 |
| 26-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Move the winding of timecounters out of hardclock and into a normal timeout loop.
Limit the rate at which we wind the timecounters to approx 1000 Hz.
This limits the precision of the get{bin,nano,m
Move the winding of timecounters out of hardclock and into a normal timeout loop.
Limit the rate at which we wind the timecounters to approx 1000 Hz.
This limits the precision of the get{bin,nano,micro}[up]time(9) functions to roughly a millisecond.
show more ...
|
#
056abcab |
| 26-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Various cleanup and sorting of clock reading functions. Add the two functions missing in the complete 12 function complement.
|
#
656d3e04 |
| 26-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Rename tco_setscales() and tco_delta() to use the same tc_ prefix as the rest of this file.
|
#
7e2d76ff |
| 26-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove the tc_update() function. Any frequency change to the timecounter will be used starting at the next second, which is good enough for sysctl purposes. If better adjustment is needed the NTP P
Remove the tc_update() function. Any frequency change to the timecounter will be used starting at the next second, which is good enough for sysctl purposes. If better adjustment is needed the NTP PLL should be used.
show more ...
|
#
e1d970f1 |
| 15-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
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 di
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.
show more ...
|
#
45609bea |
| 28-Mar-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Get the magnitude of the NTP adjustment right.
|
#
4d77a549 |
| 19-Mar-2002 |
Alfred Perlstein <alfred@FreeBSD.org> |
Remove __P.
|
#
1634e908 |
| 26-Feb-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove unused variable.
|
#
5b7d8efa |
| 24-Feb-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add a generation number to timecounters and spin if it changes under our feet when we look inside timecounter structures.
Make the "sync_other" code more robust by never overwriting the tc_next fiel
Add a generation number to timecounters and spin if it changes under our feet when we look inside timecounter structures.
Make the "sync_other" code more robust by never overwriting the tc_next field.
Add counters for the bin[up]time functions.
Call tc_windup() in tc_init() and switch_timecounter() to make sure we all the fields set right.
show more ...
|
#
4e2befc0 |
| 22-Feb-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Use better scaling factor for NTPs correction. Explain the magic.
|
#
2028c0cd |
| 07-Feb-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Revise timercounters to use binary fixed point format internally.
The binary format "bintime" is a 32.64 format, it will go to 64.64 when time_t does.
The bintime format is available to consumers o
Revise timercounters to use binary fixed point format internally.
The binary format "bintime" is a 32.64 format, it will go to 64.64 when time_t does.
The bintime format is available to consumers of time in the kernel, and is preferable where timeintervals needs to be accumulated.
This change simplifies much of the magic math inside the timecounters and improves the frequency and time precision by a couple of bits.
I have not been able to measure a performance difference which was not a tiny fraction of the standard deviation on the measurements.
show more ...
|
#
a3058964 |
| 05-Feb-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Let the number of timecounters follow hz, otherwise people with HZ=BIGNUM will strain the assumptions behind timecounters to the point where they break.
This may or may not help people seeing microu
Let the number of timecounters follow hz, otherwise people with HZ=BIGNUM will strain the assumptions behind timecounters to the point where they break.
This may or may not help people seeing microuptime() backwards messages.
Make the global timecounter variable volatile, it makes no difference in the code GCC generates, but it makes represents the intent correctly.
Thanks to: jdp MFC after: 2 weeks
show more ...
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
05a2f798 |
| 25-Jan-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Be more conservative about interrupt latency, it aint getting better it seems.
|