From: Jens Axboe Date: Mon, 17 Dec 2012 13:29:28 +0000 (+0100) Subject: gettime: include per-cpu clock calibration in cpu clock test X-Git-Tag: fio-2.0.12~6 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=4f1d43c22e2a87d0341e607bd1691d57dd2ef2b8 gettime: include per-cpu clock calibration in cpu clock test Signed-off-by: Jens Axboe --- diff --git a/gettime.c b/gettime.c index 0683bd15..f5be6bd0 100644 --- a/gettime.c +++ b/gettime.c @@ -429,6 +429,10 @@ int fio_monotonic_clocktest(void) uint64_t seq = 0; int i; + fio_debug |= 1U << FD_TIME; + calibrate_cpu_clock(); + fio_debug &= ~(1U << FD_TIME); + threads = malloc(nr_cpus * sizeof(struct clock_thread)); tentries = CLOCK_ENTRIES * nr_cpus; entries = malloc(tentries * sizeof(struct clock_entry));