X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gettime.c;h=6a50ec548d0091d0f489fb45c6310254539ed7f2;hp=093b6a499df0e1549ae65b158ae578814e974778;hb=ca5cc357c4db711e316c182158736813a6836b81;hpb=2aebc5a129c93498318a950fcb112be5de3e88f5 diff --git a/gettime.c b/gettime.c index 093b6a49..6a50ec54 100644 --- a/gettime.c +++ b/gettime.c @@ -31,8 +31,6 @@ static unsigned int cycles_wrap; int tsc_reliable = 0; struct tv_valid { - uint64_t last_cycles; - int last_tv_valid; int warned; }; #ifdef ARCH_HAVE_CPU_CLOCK @@ -198,9 +196,6 @@ static void __fio_gettime(struct timespec *tp) nsecs = multiples * nsecs_for_max_cycles; nsecs += ((t & max_cycles_mask) * clock_mult) >> clock_shift; #endif - tv->last_cycles = t; - tv->last_tv_valid = 1; - tp->tv_sec = nsecs / 1000000000ULL; tp->tv_nsec = nsecs % 1000000000ULL; break;