mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
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>
This commit is contained in:
parent
a1963b81de
commit
07c54f7a7f
4 changed files with 7 additions and 7 deletions
|
@ -7164,8 +7164,8 @@ void __init sched_init(void)
|
||||||
rq->calc_load_active = 0;
|
rq->calc_load_active = 0;
|
||||||
rq->calc_load_update = jiffies + LOAD_FREQ;
|
rq->calc_load_update = jiffies + LOAD_FREQ;
|
||||||
init_cfs_rq(&rq->cfs);
|
init_cfs_rq(&rq->cfs);
|
||||||
init_rt_rq(&rq->rt, rq);
|
init_rt_rq(&rq->rt);
|
||||||
init_dl_rq(&rq->dl, rq);
|
init_dl_rq(&rq->dl);
|
||||||
#ifdef CONFIG_FAIR_GROUP_SCHED
|
#ifdef CONFIG_FAIR_GROUP_SCHED
|
||||||
root_task_group.shares = ROOT_TASK_GROUP_LOAD;
|
root_task_group.shares = ROOT_TASK_GROUP_LOAD;
|
||||||
INIT_LIST_HEAD(&rq->leaf_cfs_rq_list);
|
INIT_LIST_HEAD(&rq->leaf_cfs_rq_list);
|
||||||
|
|
|
@ -69,7 +69,7 @@ void init_dl_bw(struct dl_bw *dl_b)
|
||||||
dl_b->total_bw = 0;
|
dl_b->total_bw = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_dl_rq(struct dl_rq *dl_rq, struct rq *rq)
|
void init_dl_rq(struct dl_rq *dl_rq)
|
||||||
{
|
{
|
||||||
dl_rq->rb_root = RB_ROOT;
|
dl_rq->rb_root = RB_ROOT;
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ static void start_rt_bandwidth(struct rt_bandwidth *rt_b)
|
||||||
static void push_irq_work_func(struct irq_work *work);
|
static void push_irq_work_func(struct irq_work *work);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void init_rt_rq(struct rt_rq *rt_rq, struct rq *rq)
|
void init_rt_rq(struct rt_rq *rt_rq)
|
||||||
{
|
{
|
||||||
struct rt_prio_array *array;
|
struct rt_prio_array *array;
|
||||||
int i;
|
int i;
|
||||||
|
@ -205,7 +205,7 @@ int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
|
||||||
if (!rt_se)
|
if (!rt_se)
|
||||||
goto err_free_rq;
|
goto err_free_rq;
|
||||||
|
|
||||||
init_rt_rq(rt_rq, cpu_rq(i));
|
init_rt_rq(rt_rq);
|
||||||
rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime;
|
rt_rq->rt_runtime = tg->rt_bandwidth.rt_runtime;
|
||||||
init_tg_rt_entry(tg, rt_rq, rt_se, i, parent->rt_se[i]);
|
init_tg_rt_entry(tg, rt_rq, rt_se, i, parent->rt_se[i]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1671,8 +1671,8 @@ extern void print_rt_stats(struct seq_file *m, int cpu);
|
||||||
extern void print_dl_stats(struct seq_file *m, int cpu);
|
extern void print_dl_stats(struct seq_file *m, int cpu);
|
||||||
|
|
||||||
extern void init_cfs_rq(struct cfs_rq *cfs_rq);
|
extern void init_cfs_rq(struct cfs_rq *cfs_rq);
|
||||||
extern void init_rt_rq(struct rt_rq *rt_rq, struct rq *rq);
|
extern void init_rt_rq(struct rt_rq *rt_rq);
|
||||||
extern void init_dl_rq(struct dl_rq *dl_rq, struct rq *rq);
|
extern void init_dl_rq(struct dl_rq *dl_rq);
|
||||||
|
|
||||||
extern void cfs_bandwidth_usage_inc(void);
|
extern void cfs_bandwidth_usage_inc(void);
|
||||||
extern void cfs_bandwidth_usage_dec(void);
|
extern void cfs_bandwidth_usage_dec(void);
|
||||||
|
|
Loading…
Add table
Reference in a new issue