cvs commit: src/sys/conf files.ia64 src/sys/ia64/ia64 clock.c
clock_if.m eficlock.c src/sys/ia64/include clockvar.h
Marcel Moolenaar
marcel at FreeBSD.org
Thu Apr 21 22:04:59 PDT 2005
marcel 2005-04-22 05:04:58 UTC
FreeBSD src repository
Modified files:
sys/conf files.ia64
sys/ia64/ia64 clock.c
Removed files:
sys/ia64/ia64 clock_if.m eficlock.c
sys/ia64/include clockvar.h
Log:
Sanity the RTC code:
o Remove the clock interface. Not only does it conflict with the MI
version when device genclock is added to the kernel, it was also
not possible to have more than 1 clock device. This of course would
have been a problem if we actually had more than 1 clock device.
In short: we don't need a clock interface and if we do eventually,
we should be using the MI one.
o Rewrite inittodr() and resettodr() to take into account that:
1) We use the EFI interface directly.
2) time_t is 64-bit and we do need to make sure we can determine
leap years from year 2100 and on. Add a nice explanation of
where leap years come from and why.
3) This rewrite happened in 2005 so any date prior to 1/1/2005
(either M/D/Y or D/M/Y) is bogus. Reprogram the EFI clock with
1/1/2005 in that case.
4) The EFI clock has a high probability of being correct, so
only (further) correct the EFI clock when the file system time
is larger. That should never happen in a time-synchronised world.
Complain when EFI lost 2 days or more.
Replace the copyright notice now that I (pretty much) rewrote all of
this file.
Revision Changes Path
1.76 +0 -2 src/sys/conf/files.ia64
1.25 +132 -184 src/sys/ia64/ia64/clock.c
1.4 +0 -52 src/sys/ia64/ia64/clock_if.m (dead)
1.4 +0 -111 src/sys/ia64/ia64/eficlock.c (dead)
1.4 +0 -53 src/sys/ia64/include/clockvar.h (dead)
More information about the cvs-all
mailing list