Add check for invariant TSC on x86 and use TSC is default clock if reliable
authorJens Axboe <axboe@kernel.dk>
Sun, 9 Dec 2012 19:29:00 +0000 (20:29 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 9 Dec 2012 19:29:00 +0000 (20:29 +0100)
commitfa80feae51331fb170e784459fa1359d7ec3a963
treeaa23a345eb99081d44b1afb92bf60c7d4d6eec10
parent5a90bb5f50f641a65f879ae09dbd65440e0ab2a6
Add check for invariant TSC on x86 and use TSC is default clock if reliable

TSC is by far the fastest clock we can use. Check the CPUID bits for
whether it is both constant rate AND synced across cores. If it is,
we can use it as our default clock source.

Fio will default to this clock source on x86 if no other clock source
is specifically given with clocksource= in the job file.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/arch-x86-common.h [new file with mode: 0644]
arch/arch-x86.h
arch/arch-x86_64.h
crc/crc32c-intel.c
fio.c
fio.h
gettime.c
options.c