summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2011-04-28 17:56:02 +0000
committerjkim <jkim@FreeBSD.org>2011-04-28 17:56:02 +0000
commit6bf8d645b99d4f86361f730f5e7edd10f408c5aa (patch)
treedb6ecfb62fa7845f9c53349a205edfacc77c9a14
parent251e6e3d22916c97b47c6ecfe3f1253e430644b7 (diff)
downloadFreeBSD-src-6bf8d645b99d4f86361f730f5e7edd10f408c5aa.zip
FreeBSD-src-6bf8d645b99d4f86361f730f5e7edd10f408c5aa.tar.gz
Turn off periodic recalibration of CPU ticker frequency if it is invariant.
-rw-r--r--sys/x86/x86/tsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c
index c08f4ad..e91522c 100644
--- a/sys/x86/x86/tsc.c
+++ b/sys/x86/x86/tsc.c
@@ -228,7 +228,7 @@ init_TSC(void)
* discovers a new max frequency.
*/
if (tsc_freq != 0)
- set_cputicker(rdtsc, tsc_freq, 1);
+ set_cputicker(rdtsc, tsc_freq, !tsc_is_invariant);
if (tsc_is_invariant)
return;
OpenPOWER on IntegriCloud