diff options
author | Yiwei Lin <s921975628@gmail.com> | 2023-10-20 08:56:17 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-10-20 16:55:04 +0300 |
commit | 4c456c9ad334a940e354da1002184bc19f4493ef (patch) | |
tree | f1b6dd70e8ce4cd7c12a9b0942cccaf84224002a /kernel/sched | |
parent | fb064e5ae1657595c090ebbc5b15787a3ef603e9 (diff) | |
download | linux-4c456c9ad334a940e354da1002184bc19f4493ef.tar.xz |
sched/fair: Remove unused 'curr' argument from pick_next_entity()
The 'curr' argument of pick_next_entity() has become unused after
the EEVDF changes.
[ mingo: Updated the changelog. ]
Signed-off-by: Yiwei Lin <s921975628@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20231020055617.42064-1-s921975628@gmail.com
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/fair.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 8c486ffcb779..4b70b0d14698 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5256,7 +5256,7 @@ set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) * 4) do not run the "skip" process, if something else is available */ static struct sched_entity * -pick_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *curr) +pick_next_entity(struct cfs_rq *cfs_rq) { /* * Enabling NEXT_BUDDY will affect latency but not fairness. @@ -8160,7 +8160,7 @@ again: goto again; } - se = pick_next_entity(cfs_rq, curr); + se = pick_next_entity(cfs_rq); cfs_rq = group_cfs_rq(se); } while (cfs_rq); @@ -8223,7 +8223,7 @@ again: } } - se = pick_next_entity(cfs_rq, curr); + se = pick_next_entity(cfs_rq); cfs_rq = group_cfs_rq(se); } while (cfs_rq); @@ -8262,7 +8262,7 @@ simple: put_prev_task(rq, prev); do { - se = pick_next_entity(cfs_rq, NULL); + se = pick_next_entity(cfs_rq); set_next_entity(cfs_rq, se); cfs_rq = group_cfs_rq(se); } while (cfs_rq); |