Date: Sat, 5 Feb 2005 23:16:27 +0000 (UTC) From: Nate Lawson <njl@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 machdep.c src/sys/amd64/amd64 machdep.c Message-ID: <200502052316.j15NGRAi059573@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502052316.j15NGRAi059573>
