]> git.hungrycats.org Git - linux/commit
sched/eevdf: Fix HRTICK duration
authorPeter Zijlstra <peterz@infradead.org>
Tue, 24 Feb 2026 16:35:17 +0000 (17:35 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 27 Feb 2026 15:40:03 +0000 (16:40 +0100)
commit558c18d3fbb6c5b9c0b42629d7fe34476363ac00
treea7d302b2f717c27eb59a146b4d4bbaf3f5c089f3
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
sched/eevdf: Fix HRTICK duration

The nominal duration for an EEVDF task to run is until its deadline. At
which point the deadline is moved ahead and a new task selection is done.

Try and predict the time 'lost' to higher scheduling classes. Since this is
an estimate, the timer can be both early or late. In case it is early
task_tick_fair() will take the !need_resched() path and restarts the timer.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://patch.msgid.link/20260224163428.798198874@kernel.org
kernel/sched/fair.c