summaryrefslogtreecommitdiff
path: root/gettime.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-02-26 14:31:15 -0800
committerJens Axboe <axboe@fb.com>2014-02-26 14:31:15 -0800
commit225ba9e3433cf27d8ff7b213d9f78b7ef2776c70 (patch)
tree42aa9c5b489de9ced5c4b6fc9ff8fbb1ff805e7b /gettime.c
parent5903e7b7907854014478b6febfc5645a203ff59e (diff)
downloadfio-225ba9e3433cf27d8ff7b213d9f78b7ef2776c70.tar.gz
fio-225ba9e3433cf27d8ff7b213d9f78b7ef2776c70.tar.bz2
Branch and cache miss speedups
Just some low hanging fruit. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'gettime.c')
-rw-r--r--gettime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettime.c b/gettime.c
index 277f2cf8..8991703f 100644
--- a/gettime.c
+++ b/gettime.c
@@ -205,7 +205,7 @@ void fio_gettime(struct timeval *tp, void fio_unused *caller)
gtod_log_caller(caller);
#endif
- if (fio_tv) {
+ if (fio_unlikely(fio_tv)) {
memcpy(tp, fio_tv, sizeof(*tp));
return;
}