diff options
author | kib <kib@FreeBSD.org> | 2013-01-30 12:43:10 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-01-30 12:43:10 +0000 |
commit | b19d7b3a7d074dab1d31875d6620e3fe26a41666 (patch) | |
tree | aacafe7d80394de711036d532bbce868a3fa3367 /lib/libc/stdio/xprintf_int.c | |
parent | d2c9e405ba3a5efb5fd31f5f0c033cbb3058b2d9 (diff) | |
download | FreeBSD-src-b19d7b3a7d074dab1d31875d6620e3fe26a41666.zip FreeBSD-src-b19d7b3a7d074dab1d31875d6620e3fe26a41666.tar.gz |
Reduce default shift used to calculate the max frequency for the TSC
timecounter to 1, and correspondingly increase the precision of the
gettimeofday(2) and related functions in the default configuration.
The motivation for the TSC-low timecounter, as described in the
r222866, seems to provide a workaround for the non-serializing
behaviour of the RDTSC on some Intel hardware. Tests demonstrate that
even with the pre-shift of 8, the cross-core non-monotonicity of the
RDTSC is still observed reliably, e.g. on the Nehalems. The r238755
and r238973 implemented the proper fix for the issue.
The pre-shift of 1 is applied to keep TSC not overflowing for the
frequency of hardclock down to 2 sec/intr. The pre-shift is made a
tunable to allow the easy debugging of the issues users could see with
the shift being too low.
Reviewed by: bde
MFC after: 2 weeks
Diffstat (limited to 'lib/libc/stdio/xprintf_int.c')
0 files changed, 0 insertions, 0 deletions