commit | 0419419a663c7fa27957be4a827c956c0da3acdc | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue Dec 16 19:43:55 2014 -0700 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:58:09 2015 -0800 |
tree | ef612b7930673e1430e65418ae1939ff0a63b298 | |
parent | 02c7e2998366797015b60e4114d0c5478958d171 [diff] [blame] |
gettime: improve gettimeofday() offload support Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/gettime.c b/gettime.c index 87abca0..e274671 100644 --- a/gettime.c +++ b/gettime.c
@@ -207,10 +207,8 @@ 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); }