enum fio_cs fio_clock_source = FIO_PREFERRED_CLOCK_SOURCE;
int fio_clock_source_set = 0;
-enum fio_cs fio_clock_source_inited = CS_INVAL;
+static enum fio_cs fio_clock_source_inited = CS_INVAL;
#ifdef FIO_DEBUG_TIME
gtod_log_caller(caller);
#endif
- if (fio_tv) {
+ if (fio_unlikely(fio_tv)) {
memcpy(tp, fio_tv, sizeof(*tp));
return;
}
{
struct tv_valid *t;
- t = calloc(sizeof(*t), 1);
+ t = calloc(1, sizeof(*t));
if (pthread_setspecific(tv_tls_key, t))
log_err("fio: can't set TLS key\n");
}