X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gettime.c;h=1a7af377eb24b1aadb31652884ffb312b4235783;hp=f5be6bd00d2eff90a6583eaed217bcc6a498b62e;hb=1d69e8acd7d338822bfe9630e7cdceee159c7bd2;hpb=23893646c9306b785f866fb9e976f3db673af0ca diff --git a/gettime.c b/gettime.c index f5be6bd0..1a7af377 100644 --- a/gettime.c +++ b/gettime.c @@ -18,8 +18,8 @@ static unsigned long cycles_per_usec; static unsigned long last_cycles; int tsc_reliable = 0; #endif -static struct timeval last_tv; -static int last_tv_valid; +static __thread struct timeval last_tv; +static __thread int last_tv_valid; enum fio_cs fio_clock_source = FIO_PREFERRED_CLOCK_SOURCE; int fio_clock_source_set = 0;