Skip to content

Commit 821aecd

Browse files
deggemanPeter Zijlstra
authored andcommitted
sched/deadline,rt: Remove unused parameter from pick_next_[rt|dl]_entity()
The `struct rq *rq` parameter isn't used. Remove it. Signed-off-by: Dietmar Eggemann <[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 71d2974 commit 821aecd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

kernel/sched/deadline.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,8 +1961,7 @@ static void set_next_task_dl(struct rq *rq, struct task_struct *p, bool first)
19611961
deadline_queue_push_tasks(rq);
19621962
}
19631963

1964-
static struct sched_dl_entity *pick_next_dl_entity(struct rq *rq,
1965-
struct dl_rq *dl_rq)
1964+
static struct sched_dl_entity *pick_next_dl_entity(struct dl_rq *dl_rq)
19661965
{
19671966
struct rb_node *left = rb_first_cached(&dl_rq->root);
19681967

@@ -1981,7 +1980,7 @@ static struct task_struct *pick_task_dl(struct rq *rq)
19811980
if (!sched_dl_runnable(rq))
19821981
return NULL;
19831982

1984-
dl_se = pick_next_dl_entity(rq, dl_rq);
1983+
dl_se = pick_next_dl_entity(dl_rq);
19851984
BUG_ON(!dl_se);
19861985
p = dl_task_of(dl_se);
19871986

kernel/sched/rt.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,8 +1719,7 @@ static inline void set_next_task_rt(struct rq *rq, struct task_struct *p, bool f
17191719
rt_queue_push_tasks(rq);
17201720
}
17211721

1722-
static struct sched_rt_entity *pick_next_rt_entity(struct rq *rq,
1723-
struct rt_rq *rt_rq)
1722+
static struct sched_rt_entity *pick_next_rt_entity(struct rt_rq *rt_rq)
17241723
{
17251724
struct rt_prio_array *array = &rt_rq->active;
17261725
struct sched_rt_entity *next = NULL;
@@ -1742,7 +1741,7 @@ static struct task_struct *_pick_next_task_rt(struct rq *rq)
17421741
struct rt_rq *rt_rq = &rq->rt;
17431742

17441743
do {
1745-
rt_se = pick_next_rt_entity(rq, rt_rq);
1744+
rt_se = pick_next_rt_entity(rt_rq);
17461745
BUG_ON(!rt_se);
17471746
rt_rq = group_rt_rq(rt_se);
17481747
} while (rt_rq);

0 commit comments

Comments
 (0)