summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/CodeGen/CGBuiltin.cpp
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2011-06-08 19:38:31 +0000
committerjkim <jkim@FreeBSD.org>2011-06-08 19:38:31 +0000
commitfaed140c1e76bffac65f7208f4089af46dc84cc6 (patch)
treead758c0e72e3674ca680a4c9c5060683df393dc7 /contrib/llvm/tools/clang/lib/CodeGen/CGBuiltin.cpp
parent2514230a6b2cd5f522ad6c7f81f9ca6e8c5adcdd (diff)
downloadFreeBSD-src-faed140c1e76bffac65f7208f4089af46dc84cc6.zip
FreeBSD-src-faed140c1e76bffac65f7208f4089af46dc84cc6.tar.gz
Introduce low-resolution TSC timecounter "TSC-low". It replaces the normal
TSC timecounter if TSC frequency is higher than ~4.29 MHz (or 2^32-1 Hz) or multiple CPUs are present. The "TSC-low" frequency is always lower than a preset maximum value and derived from TSC frequency (by being halved until it becomes lower than the maximum). Note the maximum value for SMP case is significantly lower than UP case because we want to reduce (rare but known) "temporal anomalies" caused by non-serialized RDTSC instruction. Normally, it is still higher than "ACPI-fast" timecounter frequency (which was default timecounter hardware for long time until r222222) to be useful.
Diffstat (limited to 'contrib/llvm/tools/clang/lib/CodeGen/CGBuiltin.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud