summaryrefslogtreecommitdiff
path: root/gettime.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-12-17 14:29:28 +0100
committerJens Axboe <axboe@kernel.dk>2012-12-17 14:29:28 +0100
commit4f1d43c22e2a87d0341e607bd1691d57dd2ef2b8 (patch)
tree676152e4ce2b1f34f29b4f23b5721b0883f0109b /gettime.c
parentb9b3498e77057f4c9275da74e9e2628200460b8c (diff)
downloadfio-4f1d43c22e2a87d0341e607bd1691d57dd2ef2b8.tar.gz
fio-4f1d43c22e2a87d0341e607bd1691d57dd2ef2b8.tar.bz2
gettime: include per-cpu clock calibration in cpu clock test
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'gettime.c')
-rw-r--r--gettime.c4
1 files changed, 4 insertions, 0 deletions
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));