X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos.h;h=4416ae482fb46a176cccf252bea8307dbc24b0c8;hb=a4ed0430e4c58291c291dee1e0459fa67893e185;hp=1e924d3360b423201cab1cfce1288864d8559c5e;hpb=135be493d843d4cae2966a35cbd22a3058ec8e4b;p=fio.git diff --git a/os/os.h b/os/os.h index 1e924d33..4416ae48 100644 --- a/os/os.h +++ b/os/os.h @@ -127,7 +127,11 @@ typedef unsigned long os_cpu_mask_t; #endif #ifndef FIO_PREFERRED_CLOCK_SOURCE +#ifdef CONFIG_CLOCK_GETTIME #define FIO_PREFERRED_CLOCK_SOURCE CS_CGETTIME +#else +#define FIO_PREFERRED_CLOCK_SOURCE CS_GTOD +#endif #endif #ifndef FIO_MAX_JOBS