summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2011-04-12 22:15:46 +0000
committerjkim <jkim@FreeBSD.org>2011-04-12 22:15:46 +0000
commit8eb15cd79a268862532c7374f250152933c6d7cc (patch)
treeb8bb4cc8db8fe80781d73045e910fd150fae0a88 /sys/amd64
parentdf8e7b4e4c8923983f67d40dc817bca367b7df37 (diff)
downloadFreeBSD-src-8eb15cd79a268862532c7374f250152933c6d7cc.zip
FreeBSD-src-8eb15cd79a268862532c7374f250152933c6d7cc.tar.gz
Probe capability to find effective frequency. When the TSC is P-state
invariant, APERF/MPERF ratio can be used to find effective frequency.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/identcpu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c
index bfb2c16..c1e0220 100644
--- a/sys/amd64/amd64/identcpu.c
+++ b/sys/amd64/amd64/identcpu.c
@@ -396,8 +396,11 @@ printcpuinfo(void)
* If this CPU supports P-state invariant TSC then
* mention the capability.
*/
- if (tsc_is_invariant)
+ if (tsc_is_invariant) {
printf("\n TSC: P-state invariant");
+ if (tsc_perf_stat)
+ printf(", performance statistics");
+ }
}
}
OpenPOWER on IntegriCloud