diff options
author | jkim <jkim@FreeBSD.org> | 2008-10-21 04:31:07 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2008-10-21 04:31:07 +0000 |
commit | 3a94b40d72493d405c8f1ef56ea47e09fd825211 (patch) | |
tree | 2ff46b05e796bf1534d3e7388da650f398c58a0f /sys/i386 | |
parent | 686524f8ab169ad9722432616ff2fafffbabd3e0 (diff) | |
download | FreeBSD-src-3a94b40d72493d405c8f1ef56ea47e09fd825211.zip FreeBSD-src-3a94b40d72493d405c8f1ef56ea47e09fd825211.tar.gz |
Fix 'kern.timeconter.invariant_tsc' tunable and back out a redundant hack.
Somehow incomplete version was committed. :-(
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/tsc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index d14b2ee..95f87f5 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.c @@ -53,7 +53,8 @@ u_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, - &tsc_is_invariant, 0, "Indicates the TSC is P-state invariant"); + &tsc_is_invariant, 0, "Indicates whether the TSC is P-state invariant"); +TUNABLE_INT("kern.timecounter.invariant_tsc", &tsc_is_invariant); #ifdef SMP static int smp_tsc; @@ -111,9 +112,8 @@ init_TSC(void) set_cputicker(rdtsc, tsc_freq, 1); /* Register to find out about changes in CPU frequency. */ - if (!tsc_is_invariant) - tsc_pre_tag = EVENTHANDLER_REGISTER(cpufreq_pre_change, - tsc_freq_changing, NULL, EVENTHANDLER_PRI_FIRST); + tsc_pre_tag = EVENTHANDLER_REGISTER(cpufreq_pre_change, + tsc_freq_changing, NULL, EVENTHANDLER_PRI_FIRST); tsc_post_tag = EVENTHANDLER_REGISTER(cpufreq_post_change, tsc_freq_changed, NULL, EVENTHANDLER_PRI_FIRST); tsc_levels_tag = EVENTHANDLER_REGISTER(cpufreq_levels_changed, |