diff options
author | phk <phk@FreeBSD.org> | 1999-05-29 06:57:55 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-29 06:57:55 +0000 |
commit | f0e4180b10a857d5ebd4627bbbf5ce5a9343430d (patch) | |
tree | a180423594dc9393799fdae3beda1c462a591d23 /sys/i386/isa/clock.c | |
parent | 932326ab4525b78e6ab1910ba141f74330955fdd (diff) | |
download | FreeBSD-src-f0e4180b10a857d5ebd4627bbbf5ce5a9343430d.zip FreeBSD-src-f0e4180b10a857d5ebd4627bbbf5ce5a9343430d.tar.gz |
Stop the TSC from being used as timecounter on K5/step0 machines.
Diffstat (limited to 'sys/i386/isa/clock.c')
-rw-r--r-- | sys/i386/isa/clock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 75511f4..64ef3b2 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.133 1999/05/09 23:32:29 peter Exp $ + * $Id: clock.c,v 1.134 1999/05/28 14:08:59 bde Exp $ */ /* @@ -139,6 +139,7 @@ u_int stat_imask = SWI_CLOCK_MASK; u_int timer_freq = TIMER_FREQ; int timer0_max_count; u_int tsc_freq; +int tsc_is_broken; int wall_cmos_clock; /* wall CMOS clock assumed if != 0 */ static int beeping = 0; @@ -793,7 +794,7 @@ startrtclock() return; #endif /* NAPM > 0 */ - if (tsc_present && tsc_freq != 0) { + if (tsc_present && tsc_freq != 0 && !tsc_is_broken) { tsc_timecounter.tc_frequency = tsc_freq; init_timecounter(&tsc_timecounter); } |