Skip to content

Commit e38e529

Browse files
Peter Zijlstraingomolnar
authored andcommitted
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
1 parent dde3763 commit e38e529

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ static enum hrtimer_restart hrtick(struct hrtimer *timer)
878878

879879
rq_lock(rq, &rf);
880880
update_rq_clock(rq);
881-
rq->donor->sched_class->task_tick(rq, rq->curr, 1);
881+
rq->donor->sched_class->task_tick(rq, rq->donor, 1);
882882
rq_unlock(rq, &rf);
883883

884884
return HRTIMER_NORESTART;

0 commit comments

Comments
 (0)