Skip to content

Commit d16b7eb

Browse files
auldpPeter Zijlstra
authored andcommitted
sched/deadline: Use hrtick_enabled_dl() before start_hrtick_dl()
The deadline server code moved one of the start_hrtick_dl() calls but dropped the dl specific hrtick_enabled check. This causes hrticks to get armed even when sched_feat(HRTICK_DL) is false. Fix it. Fixes: 63ba842 ("sched/deadline: Introduce deadline servers") Signed-off-by: Phil Auld <pauld@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Juri Lelli <juri.lelli@redhat.com> Link: https://lore.kernel.org/r/20241004123729.460668-1-pauld@redhat.com
1 parent d4ac164 commit d16b7eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/deadline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ static void set_next_task_dl(struct rq *rq, struct task_struct *p, bool first)
23852385

23862386
deadline_queue_push_tasks(rq);
23872387

2388-
if (hrtick_enabled(rq))
2388+
if (hrtick_enabled_dl(rq))
23892389
start_hrtick_dl(rq, &p->dl);
23902390
}
23912391

0 commit comments

Comments
 (0)