]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/time/tick-sched.c
nohz: Fix one jiffy count too far in idle cputime
[karo-tx-linux.git] / kernel / time / tick-sched.c
index f423bdd035c2234fb91910b60d096992405a28ba..a40260885265707603d72dee9df79f030e973221 100644 (file)
@@ -835,7 +835,7 @@ static enum hrtimer_restart tick_sched_timer(struct hrtimer *timer)
                 */
                if (ts->tick_stopped) {
                        touch_softlockup_watchdog();
-                       if (idle_cpu(cpu))
+                       if (is_idle_task(current))
                                ts->idle_jiffies++;
                }
                update_process_times(user_mode(regs));