diff options
author | jkim <jkim@FreeBSD.org> | 2011-03-10 20:02:58 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2011-03-10 20:02:58 +0000 |
commit | 98d68ca74180ecc5c33c021c3a2662b4465e1e09 (patch) | |
tree | d3e4a7627440d02978a01253e4de46f2eb1bae99 /sys/x86 | |
parent | faa7c47cee548849c5160cbc1e2ef218fc3bf3b3 (diff) | |
download | FreeBSD-src-98d68ca74180ecc5c33c021c3a2662b4465e1e09.zip FreeBSD-src-98d68ca74180ecc5c33c021c3a2662b4465e1e09.tar.gz |
Deprecate rarely used tsc_is_broken. Instead, we zero out tsc_freq because
it is almost always used with tsc_freq any way.
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/isa/clock.c | 2 | ||||
-rw-r--r-- | sys/x86/x86/tsc.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/x86/isa/clock.c b/sys/x86/isa/clock.c index 13698ef..cb34eb4 100644 --- a/sys/x86/isa/clock.c +++ b/sys/x86/isa/clock.c @@ -261,7 +261,7 @@ DELAY(int n) static int state = 0; #endif - if (tsc_freq != 0 && !tsc_is_broken) { + if (tsc_freq != 0) { uint64_t start, end, now; sched_pin(); diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c index 4591abb..052535b 100644 --- a/sys/x86/x86/tsc.c +++ b/sys/x86/x86/tsc.c @@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$"); #include "cpufreq_if.h" uint64_t tsc_freq; -int tsc_is_broken; int tsc_is_invariant; int tsc_present; static eventhandler_tag tsc_levels_tag, tsc_pre_tag, tsc_post_tag; @@ -181,7 +180,7 @@ init_TSC_tc(void) tsc_timecounter.tc_quality = -100; #endif - if (tsc_freq != 0 && !tsc_is_broken) { + if (tsc_freq != 0) { tsc_timecounter.tc_frequency = tsc_freq; tc_init(&tsc_timecounter); } |