Skip to content

Commit

Permalink
sched: Fix a stale comment in pick_next_task()
Browse files Browse the repository at this point in the history
fair_sched_class->next no longer exists since commit:

  a87e749 ("sched: Remove struct sched_class::next field").

Now the sched_class order is specified by the linker script.

Rewrite the comment in a more generic way.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210519063709.323162-1-masahiroy@kernel.org
  • Loading branch information
Masahiro Yamada authored and Ingo Molnar committed May 19, 2021
1 parent 93b7385 commit 1699949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5318,7 +5318,7 @@ __pick_next_task(struct rq *rq, struct task_struct *prev, struct rq_flags *rf)
if (unlikely(p == RETRY_TASK))
goto restart;

/* Assumes fair_sched_class->next == idle_sched_class */
/* Assume the next prioritized class is idle_sched_class */
if (!p) {
put_prev_task(rq, prev);
p = pick_next_task_idle(rq);
Expand Down

0 comments on commit 1699949

Please sign in to comment.