cvs commit: src/sys/i386/i386 machdep.c src/sys/amd64/amd64 machdep.c

Nate Lawson njl at FreeBSD.org
Sat Feb 5 23:16:28 GMT 2005


njl         2005-02-05 23:16:27 UTC

  FreeBSD src repository

  Modified files:
    sys/i386/i386        machdep.c 
    sys/amd64/amd64      machdep.c 
  Log:
  Make cpu_est_clockrate() more accurate by disabling interrupts for the
  millisecond it is calibrating.  Suggested by jhb@ and bde at .  Don't clobber
  the tsc_freq with the new value since it isn't accurate enough for
  timecounters and the timecounter system as a whole needs support for
  changing rates before we do this.  Subtract 0.5% from our measurement
  to account for overhead in DELAY.  Note that this interface is for
  estimating the clockrate and needs to work well at runtime so doing a full
  calibration including disabling interrupts for a second is not feasible.
  
  Revision  Changes    Path
  1.628     +10 -2     src/sys/amd64/amd64/machdep.c
  1.606     +10 -2     src/sys/i386/i386/machdep.c


More information about the cvs-src mailing list