]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/hrtick: Fix hrtick() vs. scheduling context
authorPeter Zijlstra <peterz@infradead.org>
Mon, 1 Sep 2025 20:46:29 +0000 (22:46 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Dec 2025 09:03:13 +0000 (10:03 +0100)
commite38e5299747b23015b00b0109891815db44a2f30
treeaf74a14898a5053de88783cdf7f8ad5f1c3481cc
parentdde3763365d80398d1465214458d0c38cc32de9c
sched/hrtick: Fix hrtick() vs. scheduling context

The sched_class::task_tick() method is called on the donor
sched_class, and sched_tick() hands it rq->donor as argument,
which is consistent.

However, while hrtick() uses the donor sched_class, it then passes
rq->curr, which is inconsistent. Fix it.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: John Stultz <jstultz@google.com>
Link: https://patch.msgid.link/20250918080205.442967033@infradead.org
kernel/sched/core.c