sched: Remove unused params of build_sched_domain()
build_sched_domain() never uses parameter struct s_data *d and so passing it is useless. Remove it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/545e0b4536166a15b4475abcafe5ed0db4ad4a2c.1370436120.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:

committed by
Ingo Molnar

parent
0a0fca9d83
commit
4a850cbefa
@@ -5943,9 +5943,8 @@ static void __sdt_free(const struct cpumask *cpu_map)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl,
|
struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl,
|
||||||
struct s_data *d, const struct cpumask *cpu_map,
|
const struct cpumask *cpu_map, struct sched_domain_attr *attr,
|
||||||
struct sched_domain_attr *attr, struct sched_domain *child,
|
struct sched_domain *child, int cpu)
|
||||||
int cpu)
|
|
||||||
{
|
{
|
||||||
struct sched_domain *sd = tl->init(tl, cpu);
|
struct sched_domain *sd = tl->init(tl, cpu);
|
||||||
if (!sd)
|
if (!sd)
|
||||||
@@ -5985,7 +5984,7 @@ static int build_sched_domains(const struct cpumask *cpu_map,
|
|||||||
|
|
||||||
sd = NULL;
|
sd = NULL;
|
||||||
for (tl = sched_domain_topology; tl->init; tl++) {
|
for (tl = sched_domain_topology; tl->init; tl++) {
|
||||||
sd = build_sched_domain(tl, &d, cpu_map, attr, sd, i);
|
sd = build_sched_domain(tl, cpu_map, attr, sd, i);
|
||||||
if (tl->flags & SDTL_OVERLAP || sched_feat(FORCE_SD_OVERLAP))
|
if (tl->flags & SDTL_OVERLAP || sched_feat(FORCE_SD_OVERLAP))
|
||||||
sd->flags |= SD_OVERLAP;
|
sd->flags |= SD_OVERLAP;
|
||||||
if (cpumask_equal(cpu_map, sched_domain_span(sd)))
|
if (cpumask_equal(cpu_map, sched_domain_span(sd)))
|
||||||
|
Reference in New Issue
Block a user