diff options
author | jkim <jkim@FreeBSD.org> | 2010-12-14 20:07:51 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-12-14 20:07:51 +0000 |
commit | 879b3da6b59546ff4f89076a858a746027da0a05 (patch) | |
tree | 097eb45b509a90553e05cf7a887104084d416a9d /usr.bin/printf | |
parent | b683a398af3500a579e31d0fc2e293dd936b2e8e (diff) | |
download | FreeBSD-src-879b3da6b59546ff4f89076a858a746027da0a05.zip FreeBSD-src-879b3da6b59546ff4f89076a858a746027da0a05.tar.gz |
Stop lying about supporting cpu_est_clockrate() when TSC is invariant. This
function always returned the nominal frequency instead of current frequency
because we use RDTSC instruction to calculate difference in CPU ticks, which
is supposedly constant for the case. Now we support cpu_get_nominal_mhz()
for the case, instead. Note it should be just enough for most usage cases
because cpu_est_clockrate() is often times abused to find maximum frequency
of the processor.
Diffstat (limited to 'usr.bin/printf')
0 files changed, 0 insertions, 0 deletions