From 36bb0880c7f7f48abb86e3a16d3168343dda9b75 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 7 Jan 2015 15:04:39 -0700 Subject: [PATCH] Fix disk utils being updated too often Fixes: f893b76d5745 Signed-off-by: Jens Axboe --- backend.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend.c b/backend.c index 3df0133f..efabfa79 100644 --- a/backend.c +++ b/backend.c @@ -2104,18 +2104,11 @@ static void *helper_thread_main(void *data) uint64_t sec = DISK_UTIL_MSEC / 1000; uint64_t nsec = (DISK_UTIL_MSEC % 1000) * 1000000; struct timespec ts; - -#if defined(CONFIG_CLOCK_MONOTONIC) - clock_gettime(CLOCK_MONOTONIC, &ts); - ts.tv_sec += sec; - ts.tv_nsec += nsec; -#else struct timeval tv; gettimeofday(&tv, NULL); ts.tv_sec = tv.tv_sec + sec; ts.tv_nsec = (tv.tv_usec * 1000) + nsec; -#endif if (ts.tv_nsec >= 1000000000ULL) { ts.tv_nsec -= 1000000000ULL; -- 2.25.1