diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-05-19 08:37:09 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-05-19 13:03:21 +0200 |
commit | 1699949d3314e5d1956fb082e4cd4798bf6149fc (patch) | |
tree | 0a3be60fa81a914276d121cbb11733a6f8b736fb /kernel/sched/core.c | |
parent | sched/uclamp: Fix locking around cpu_util_update_eff() (diff) | |
download | linux-1699949d3314e5d1956fb082e4cd4798bf6149fc.tar.xz linux-1699949d3314e5d1956fb082e4cd4798bf6149fc.zip |
sched: Fix a stale comment in pick_next_task()
fair_sched_class->next no longer exists since commit:
a87e749e8fa1 ("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
Diffstat (limited to '')
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 3ec420c8a038..3d2527239c3e 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -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); |