Change preferred default clocksource to gettimeofday()
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index e150284ef6a84f10764abe08103e795ae2058ee6..1d3a750ac526f7b016e1a166e6c6d13b4681266c 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -68,22 +68,11 @@ typedef struct aiocb os_aiocb_t;
 #define OS_MSG_DONTWAIT        MSG_DONTWAIT
 #endif
 
-#ifndef FIO_HAVE_FADVISE
-static inline int posix_fadvise(int fd, int off, int len, int advice)
-{
-       (void)fd;
-       (void)off;
-       (void)len;
-       (void)advice;
-       return 0;
-}
-
 #ifndef POSIX_FADV_DONTNEED
 #define POSIX_FADV_DONTNEED    (0)
 #define POSIX_FADV_SEQUENTIAL  (0)
 #define POSIX_FADV_RANDOM      (0)
 #endif
-#endif /* FIO_HAVE_FADVISE */
 
 #ifndef FIO_HAVE_CPU_AFFINITY
 #define fio_setaffinity(pid, mask)     (0)
@@ -115,6 +104,10 @@ typedef unsigned long os_cpu_mask_t;
 #endif
 #endif
 
+#ifndef FIO_HAVE_MMAP_HUGE
+#define MAP_HUGETLB                    0
+#endif
+
 #ifndef FIO_O_NOATIME
 #define FIO_O_NOATIME                  0
 #endif
@@ -142,7 +135,7 @@ typedef unsigned long os_cpu_mask_t;
 #endif
 
 #ifndef FIO_PREFERRED_CLOCK_SOURCE
-#define FIO_PREFERRED_CLOCK_SOURCE     CS_CGETTIME
+#define FIO_PREFERRED_CLOCK_SOURCE     CS_GTOD
 #endif
 
 #ifndef FIO_MAX_JOBS