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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Juri Lelli <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d4ac164 commit d16b7eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)