Skip to content

Commit 07c54f7

Browse files
abelvesaIngo Molnar
authored andcommitted
sched/core: Remove unused argument from init_[rt|dl]_rq()
Obviously, 'rq' is not used in these two functions, therefore, there is no reason for it to be passed as an argument. Signed-off-by: Abel Vesa <abelvesa@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: http://lkml.kernel.org/r/1425383427-26244-1-git-send-email-abelvesa@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent a1963b8 commit 07c54f7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

kernel/sched/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7164,8 +7164,8 @@ void __init sched_init(void)
71647164
rq->calc_load_active = 0;
71657165
rq->calc_load_update = jiffies + LOAD_FREQ;
71667166
init_cfs_rq(&rq->cfs);
7167-
init_rt_rq(&rq->rt, rq);
7168-
init_dl_rq(&rq->dl, rq);
7167+
init_rt_rq(&rq->rt);
7168+
init_dl_rq(&rq->dl);
71697169
#ifdef CONFIG_FAIR_GROUP_SCHED
71707170
root_task_group.shares = ROOT_TASK_GROUP_LOAD;
71717171
INIT_LIST_HEAD(&rq->leaf_cfs_rq_list);

kernel/sched/deadline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void init_dl_bw(struct dl_bw *dl_b)
6969
dl_b->total_bw = 0;
7070
}
7171

72-
void init_dl_rq(struct dl_rq *dl_rq, struct rq *rq)
72+
void init_dl_rq(struct dl_rq *dl_rq)
7373
{
7474
dl_rq->rb_root = RB_ROOT;
7575

kernel/sched/rt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static void start_rt_bandwidth(struct rt_bandwidth *rt_b)
6464
static void push_irq_work_func(struct irq_work *work);
6565
#endif
6666

67-
void init_rt_rq(struct rt_rq *rt_rq, struct rq *rq)
67+
void init_rt_rq(struct rt_rq *rt_rq)
6868
{
6969
struct rt_prio_array *array;
7070
int i;
@@ -205,7 +205,7 @@ int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
205205
if (!rt_se)
206206
goto err_free_rq;
207207

208-
init_rt_rq(rt_rq, cpu_rq(i));
208+
init_rt_rq(rt_rq);
209209
rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime;
210210
init_tg_rt_entry(tg, rt_rq, rt_se, i, parent->rt_se[i]);
211211
}

kernel/sched/sched.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,8 +1671,8 @@ extern void print_rt_stats(struct seq_file *m, int cpu);
16711671
extern void print_dl_stats(struct seq_file *m, int cpu);
16721672

16731673
extern void init_cfs_rq(struct cfs_rq *cfs_rq);
1674-
extern void init_rt_rq(struct rt_rq *rt_rq, struct rq *rq);
1675-
extern void init_dl_rq(struct dl_rq *dl_rq, struct rq *rq);
1674+
extern void init_rt_rq(struct rt_rq *rt_rq);
1675+
extern void init_dl_rq(struct dl_rq *dl_rq);
16761676

16771677
extern void cfs_bandwidth_usage_inc(void);
16781678
extern void cfs_bandwidth_usage_dec(void);

0 commit comments

Comments
 (0)