Branch and cache miss speedups
[fio.git] / gettime.c
index 277f2cf87ec16229150651ee85a163ed0b5ce7f4..8991703fd0662fad4616ed8ab66f154f12c0ade9 100644 (file)
--- 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;
        }