diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index a5a9389c4c3090221d1b31bb89512cba5b36af0c..0c1485e42be6eec17d2525cbb4f2383daf8e2274 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -1152,6 +1152,10 @@ static void update_wall_time(void) offset = (clock->read(clock) - clock->cycle_last) & clock->mask; #endif + /* Check if there's really nothing to do */ + if (offset < tk->cycle_interval) + goto out; + /* * With NO_HZ we may have to accumulate many cycle_intervals * (think "ticks") worth of time at once. To do this efficiently,