summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-12-03 21:06:30 +0000
committerjkim <jkim@FreeBSD.org>2010-12-03 21:06:30 +0000
commit27a9a04e8570c6d0eddb40b6857bbb1376a4a923 (patch)
tree2d4950430b674ff1af637d106dc187083407881c /sys/amd64
parent1ffd755b88155bbf5b6a24803f1c24805e37f340 (diff)
downloadFreeBSD-src-27a9a04e8570c6d0eddb40b6857bbb1376a4a923.zip
FreeBSD-src-27a9a04e8570c6d0eddb40b6857bbb1376a4a923.tar.gz
Do not change CPU ticker frequency if TSC is P-state invariant. Note this
change was meant to be committed with r184102 (and its subsequent MFCs) but it fell off somehow. Pointyhat to: jkim MFC after: 3 days
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/tsc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c
index 847c1eb..9ed36eb 100644
--- a/sys/amd64/amd64/tsc.c
+++ b/sys/amd64/amd64/tsc.c
@@ -146,6 +146,9 @@ tsc_levels_changed(void *arg, int unit)
int count, error;
uint64_t max_freq;
+ if (tsc_is_invariant)
+ return;
+
/* Only use values from the first CPU, assuming all are equal. */
if (unit != 0)
return;
OpenPOWER on IntegriCloud