summaryrefslogtreecommitdiffstats
path: root/sys/libkern/strlcat.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-02-05 23:16:27 +0000
committernjl <njl@FreeBSD.org>2005-02-05 23:16:27 +0000
commite0147243eb2cc8d8993b55f6439c404904806710 (patch)
tree0e1f039adcdea95909bcd77418b2001d569179ae /sys/libkern/strlcat.c
parent0138510ffdc9c9b9484b92c467ffcd5ecac8fa8d (diff)
downloadFreeBSD-src-e0147243eb2cc8d8993b55f6439c404904806710.zip
FreeBSD-src-e0147243eb2cc8d8993b55f6439c404904806710.tar.gz
Make cpu_est_clockrate() more accurate by disabling interrupts for the
millisecond it is calibrating. Suggested by jhb@ and bde@. Don't clobber the tsc_freq with the new value since it isn't accurate enough for timecounters and the timecounter system as a whole needs support for changing rates before we do this. Subtract 0.5% from our measurement to account for overhead in DELAY. Note that this interface is for estimating the clockrate and needs to work well at runtime so doing a full calibration including disabling interrupts for a second is not feasible.
Diffstat (limited to 'sys/libkern/strlcat.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud