Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 May 1996 01:39:05 -0700 (PDT)
From:      Bruce Evans <bde>
To:        CVS-committers, cvs-all, cvs-sys
Subject:   cvs commit:  src/sys/i386/include clock.h src/sys/i386/isa clock.c src/sys/i386/i386 machdep.c
Message-ID:  <199605010839.BAA22903@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         96/05/01 01:39:04

  Modified:    sys/i386/i386  machdep.c
               sys/i386/include  clock.h
               sys/i386/isa  clock.c
  Log:
  Added calibration the i8254 and the i586 clocks agains the RTC at boot
  time.  The results are currently ignored unless certain temporary options
  are used.
  
  Added sysctls to support reading and writing the clock frequency variables
  (not the frequencies themselves).  Writing is supposed to atomically
  adjust all related variables.
  
  machdep.c:
  Fixed spelling of a function name in a comment so that I can log this
  message which should have been with the previous commit.
  
  Initialize `cpu_class' earlier so that it can be used in startrtclock()
  instead of in calibrate_cyclecounter() (which no longer exists).
  
  Removed range checking of `cpu'.  It is always initialized to CPU_XXX
  so it is less likely to be out of bounds than most variables.
  
  clock.h:
  Removed I586_CYCLECTR().  Use rdtsc() instead.
  
  clock.c:
  TIMER_FREQ is now a variable timer_freq that defaults to the old value of
  TIMER_FREQ.  #define'ing TIMER_FREQ should still work and may be the best
  way of setting the frequency.
  
  Calibration involves counting cycles while watching the RTC for one second.
  This gives values correct to within (a few ppm) + (the innaccuracy of the
  RTC) on my systems.
  
  Revision  Changes    Path
  1.186     +2 -2      src/sys/i386/i386/machdep.c
  1.13      +4 -9      src/sys/i386/include/clock.h
  1.58      +249 -43   src/sys/i386/isa/clock.c



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