summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStian Halseth <stian@itx.no>2026-10-07 16:29:50 +0200
committerPeter Zijlstra <peterz@infradead.org>2026-10-16 09:49:03 +0200
commit96a494c9cfd8f4bb7b1a7a70275426db71cf98aa (patch)
treea4bcb7d5a6850ee0bf4f64a52a45f01800fb3500 /tools/perf/scripts/python
parent6f88f6cbb0472a8481ba560578a1d7c8d802eba7 (diff)
downloadlinux-96a494c9cfd8f4bb7b1a7a70275426db71cf98aa.tar.gz
linux-96a494c9cfd8f4bb7b1a7a70275426db71cf98aa.zip
sched/cputime: Don't account idle time twice after dyntick-idle
On idle exit the dyntick-idle accounting accounts the time up to now, then the tick is restarted on its old period. The first tick accounts a whole TICK_NSEC to whatever runs, although the part of that period before the idle exit has just been accounted as idle time, or with IRQ_TIME_ACCOUNTING as IRQ time. That is up to a full tick per idle exit, and /proc/stat reports more idle time than wall time. Record how much of the current tick period dyntick-idle has accounted, and leave it out of the tick that ends the period. Fixes: cf6444c3e1bb7 ("tick/sched: Unify idle cputime accounting") Signed-off-by: Stian Halseth <stian@itx.no> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/all/20261004142724.3896396-1-stian@itx.no/ Link: https://patch.msgid.link/20261007142950.547604-1-stian@itx.no
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions