summaryrefslogtreecommitdiff
path: root/gettime.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-12-16 19:43:55 -0700
committerJens Axboe <axboe@fb.com>2014-12-16 19:43:55 -0700
commit27325ed5a4f770b681c6847352c547d51dbdeb62 (patch)
treeffccb7f296309b844f1d52b456dd722315ef9924 /gettime.c
parent02dcf81c05b90bf50c062545a4b1158bca75950b (diff)
downloadfio-27325ed5a4f770b681c6847352c547d51dbdeb62.tar.gz
fio-27325ed5a4f770b681c6847352c547d51dbdeb62.tar.bz2
gettime: improve gettimeofday() offload support
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'gettime.c')
-rw-r--r--gettime.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gettime.c b/gettime.c
index 87abca0f..e2746711 100644
--- a/gettime.c
+++ b/gettime.c
@@ -207,10 +207,8 @@ void fio_gettime(struct timeval *tp, void fio_unused *caller)
gtod_log_caller(caller);
#endif
- if (fio_unlikely(fio_tv)) {
- memcpy(tp, fio_tv, sizeof(*tp));
+ if (fio_unlikely(fio_gettime_offload(tp)))
return;
- }
__fio_gettime(tp);
}