Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Apr 2005 05:04:58 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/conf files.ia64 src/sys/ia64/ia64 clock.c clock_if.m eficlock.c src/sys/ia64/include clockvar.h
Message-ID:  <200504220504.j3M54wwL001551@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504220504.j3M54wwL001551>