From 372fd659ee6a652d373ae0b4420c23c5fa9e4dc0 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 2 Feb 2013 10:05:07 +0100 Subject: [PATCH 1/1] clock: hardwire tsc as unreliable on Solaris for now Need to double check the cpuid test, it probably only is reliable on Intel. Need to check the CPU vendor and flags appropriately. Signed-off-by: Jens Axboe --- gettime.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gettime.c b/gettime.c index cc9dcb7b..5c0e4457 100644 --- a/gettime.c +++ b/gettime.c @@ -342,6 +342,14 @@ void fio_clock_init(void) log_err("fio: can't create TLS key\n"); #endif + /* + * Probably an AMD issue, will need to investigate. Until that + * is done, disable the CPU clock. + */ +#if FIO_OS == os_solaris + tsc_reliable = 0; +#endif + fio_clock_source_inited = fio_clock_source; calibrate_cpu_clock(); -- 2.25.1