diff options
author | jkim <jkim@FreeBSD.org> | 2011-03-15 17:19:52 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2011-03-15 17:19:52 +0000 |
commit | ad8ef5e4c74c5284ed975a5c90bc986ea4ed3933 (patch) | |
tree | d87e7f881f4daa44164c406cd5648fc96c3d4144 /sys/x86 | |
parent | d3440080b0bc9de31def1f395728bafd1bcb558f (diff) | |
download | FreeBSD-src-ad8ef5e4c74c5284ed975a5c90bc986ea4ed3933.zip FreeBSD-src-ad8ef5e4c74c5284ed975a5c90bc986ea4ed3933.tar.gz |
Deprecate tsc_present as the last of its real consumers finally disappeared.
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/x86/tsc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c index 40d5f3c..1781a78 100644 --- a/sys/x86/x86/tsc.c +++ b/sys/x86/x86/tsc.c @@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$"); uint64_t tsc_freq; int tsc_is_invariant; -int tsc_present; static eventhandler_tag tsc_levels_tag, tsc_pre_tag, tsc_post_tag; SYSCTL_INT(_kern_timecounter, OID_AUTO, invariant_tsc, CTLFLAG_RDTUN, @@ -89,11 +88,7 @@ init_TSC(void) { u_int64_t tscval[2]; - if ((cpu_feature & CPUID_TSC) == 0) - return; - tsc_present = 1; - - if (tsc_disabled) + if ((cpu_feature & CPUID_TSC) == 0 || tsc_disabled) return; if (bootverbose) @@ -155,7 +150,7 @@ void init_TSC_tc(void) { - if (!tsc_present || tsc_disabled) + if ((cpu_feature & CPUID_TSC) == 0 || tsc_disabled) return; /* |