]> 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 3a9e5d5c10916a7e67c131df489617a485a39bfc..e430b97438dc135f4a45476abb209dba0707633c 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));