Skip to content

Commit 4c456c9

Browse files
RinHizakuraIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent fb064e5 commit 4c456c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel/sched/fair.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5256,7 +5256,7 @@ set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
52565256
* 4) do not run the "skip" process, if something else is available
52575257
*/
52585258
static struct sched_entity *
5259-
pick_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *curr)
5259+
pick_next_entity(struct cfs_rq *cfs_rq)
52605260
{
52615261
/*
52625262
* Enabling NEXT_BUDDY will affect latency but not fairness.
@@ -8160,7 +8160,7 @@ static struct task_struct *pick_task_fair(struct rq *rq)
81608160
goto again;
81618161
}
81628162

8163-
se = pick_next_entity(cfs_rq, curr);
8163+
se = pick_next_entity(cfs_rq);
81648164
cfs_rq = group_cfs_rq(se);
81658165
} while (cfs_rq);
81668166

@@ -8223,7 +8223,7 @@ pick_next_task_fair(struct rq *rq, struct task_struct *prev, struct rq_flags *rf
82238223
}
82248224
}
82258225

8226-
se = pick_next_entity(cfs_rq, curr);
8226+
se = pick_next_entity(cfs_rq);
82278227
cfs_rq = group_cfs_rq(se);
82288228
} while (cfs_rq);
82298229

@@ -8262,7 +8262,7 @@ pick_next_task_fair(struct rq *rq, struct task_struct *prev, struct rq_flags *rf
82628262
put_prev_task(rq, prev);
82638263

82648264
do {
8265-
se = pick_next_entity(cfs_rq, NULL);
8265+
se = pick_next_entity(cfs_rq);
82668266
set_next_entity(cfs_rq, se);
82678267
cfs_rq = group_cfs_rq(se);
82688268
} while (cfs_rq);

0 commit comments

Comments
 (0)