X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=gettime.c;h=ac541113245fb49876ed2afa601894cff3ca776c;hb=af1dc26601999b071522562dee7ba6db6bae29ee;hp=180aa5f2ed6c3893235e85b8852d5e9a6673affd;hpb=dac499a01d1958781e526df982d78d733f19c527;p=fio.git diff --git a/gettime.c b/gettime.c index 180aa5f2..ac541113 100644 --- a/gettime.c +++ b/gettime.c @@ -133,7 +133,9 @@ static void fio_init gtod_init(void) #ifdef CONFIG_CLOCK_GETTIME static int fill_clock_gettime(struct timespec *ts) { -#ifdef CONFIG_CLOCK_MONOTONIC +#if defined(CONFIG_CLOCK_MONOTONIC_RAW) + return clock_gettime(CLOCK_MONOTONIC_RAW, ts); +#elif defined(CONFIG_CLOCK_MONOTONIC) return clock_gettime(CLOCK_MONOTONIC, ts); #else return clock_gettime(CLOCK_REALTIME, ts);