summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-05 09:20:40 +0000
committerphk <phk@FreeBSD.org>2003-02-05 09:20:40 +0000
commit545eeb1024302b3b776776ab730956295627f734 (patch)
tree7a03b09b03484b4fef54f0c9e866e483e387f54a /sys/i386/include
parent456ed0d014448dbed53a00f5d3be98dc0fab0912 (diff)
downloadFreeBSD-src-545eeb1024302b3b776776ab730956295627f734.zip
FreeBSD-src-545eeb1024302b3b776776ab730956295627f734.tar.gz
i386/i386/tsc.c was repo-copied from i386/isa/clock.c.
Remove all the stuff that does not relate to the TSC. Change the calibration to use DELAY(1000000) rather than trying to check it against the CMOS RTC, this drastically increases precision: Using 25 samples on a Athlon 700MHz UP machine I find: stddev min max average CMOS 22200 Hz -74980 Hz 34301 Hz 704928721 Hz DELAY 1805 Hz -1984 Hz 2678 Hz 704937583 Hz (The difference between the two averages is not statistically significant.) expressed in PPM of the frequency: stddev min max CMOS 31.49 PPM -106.37 PPM 48.66 PPM DELAY 2.56 PPM 2.81 PPM 3.80 PPM This code will not be used until a followup commit to sys/isa/clock.c and sys/pc98/pc98/clock.c which will only happen after some field testing.
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/clock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h
index 140a345..5ae4fb2 100644
--- a/sys/i386/include/clock.h
+++ b/sys/i386/include/clock.h
@@ -45,6 +45,7 @@ int release_timer1(void);
#endif
int sysbeep(int pitch, int period);
void timer_restore(void);
+void init_TSC(void);
#endif /* _KERNEL */
OpenPOWER on IntegriCloud