diff options
author | jkim <jkim@FreeBSD.org> | 2011-04-12 22:15:46 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2011-04-12 22:15:46 +0000 |
commit | 8eb15cd79a268862532c7374f250152933c6d7cc (patch) | |
tree | b8bb4cc8db8fe80781d73045e910fd150fae0a88 /sys/amd64 | |
parent | df8e7b4e4c8923983f67d40dc817bca367b7df37 (diff) | |
download | FreeBSD-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.c | 5 |
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"); + } } } |