Revert "Change preferred default clocksource to gettimeofday()"
authorJens Axboe <axboe@kernel.dk>
Sat, 1 Dec 2012 14:02:11 +0000 (15:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 1 Dec 2012 14:02:11 +0000 (15:02 +0100)
This reverts commit f7161017b75f5d3526147d42d3b583973922c444.

clock_gettime() is monotonic, so a superior clock source even
if it is slower.

os/os.h

diff --git a/os/os.h b/os/os.h
index 1d3a750ac526f7b016e1a166e6c6d13b4681266c..2e4764e18f4ab6c021c3171827bd7323b52ef8bf 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -135,7 +135,7 @@ typedef unsigned long os_cpu_mask_t;
 #endif
 
 #ifndef FIO_PREFERRED_CLOCK_SOURCE
-#define FIO_PREFERRED_CLOCK_SOURCE     CS_GTOD
+#define FIO_PREFERRED_CLOCK_SOURCE     CS_CGETTIME
 #endif
 
 #ifndef FIO_MAX_JOBS