]> Gentwo Git Trees - linux/.git/commit
sched/deadline: Fix dl_server time accounting
authorPeter Zijlstra <peterz@infradead.org>
Mon, 20 Oct 2025 14:15:05 +0000 (16:15 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 11 Nov 2025 11:33:38 +0000 (12:33 +0100)
commite636ffb9e31b4f7dde7fef5358669266b9ce02ec
tree01246d67c4a81ce41a0f57578ba89b106fff5ee8
parente40cea333e60c548e047eaddec6ca48c6632424b
sched/deadline: Fix dl_server time accounting

The dl_server time accounting code is a little odd. The normal scheduler
pattern is to update curr before doing something, such that the old state is
fully accounted before changing state.

Notably, the dl_server_timer() needs to propagate the current time accounting
since the current task could be ran by dl_server and thus this can affect
dl_se->runtime. Similarly for dl_server_start().

And since the (deferred) dl_server wants idle time accounted, rework
sched_idle_class time accounting to be more like all the others.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251020141130.GJ3245006@noisy.programming.kicks-ass.net
kernel/sched/deadline.c
kernel/sched/fair.c
kernel/sched/idle.c
kernel/sched/sched.h