From 4f1d43c22e2a87d0341e607bd1691d57dd2ef2b8 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 17 Dec 2012 14:29:28 +0100 Subject: [PATCH] gettime: include per-cpu clock calibration in cpu clock test Signed-off-by: Jens Axboe --- gettime.c | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- 2.25.1