Commit f39180ef authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

sched/core: Remove unused @cpu argument from destroy_sched_domain*()

Small cleanup; nothing uses the @cpu argument so make it go away.
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 0176beaf
...@@ -5952,15 +5952,15 @@ static void free_sched_domain(struct rcu_head *rcu) ...@@ -5952,15 +5952,15 @@ static void free_sched_domain(struct rcu_head *rcu)
kfree(sd); kfree(sd);
} }
static void destroy_sched_domain(struct sched_domain *sd, int cpu) static void destroy_sched_domain(struct sched_domain *sd)
{ {
call_rcu(&sd->rcu, free_sched_domain); call_rcu(&sd->rcu, free_sched_domain);
} }
static void destroy_sched_domains(struct sched_domain *sd, int cpu) static void destroy_sched_domains(struct sched_domain *sd)
{ {
for (; sd; sd = sd->parent) for (; sd; sd = sd->parent)
destroy_sched_domain(sd, cpu); destroy_sched_domain(sd);
} }
/* /*
...@@ -6032,7 +6032,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu) ...@@ -6032,7 +6032,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu)
*/ */
if (parent->flags & SD_PREFER_SIBLING) if (parent->flags & SD_PREFER_SIBLING)
tmp->flags |= SD_PREFER_SIBLING; tmp->flags |= SD_PREFER_SIBLING;
destroy_sched_domain(parent, cpu); destroy_sched_domain(parent);
} else } else
tmp = tmp->parent; tmp = tmp->parent;
} }
...@@ -6040,7 +6040,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu) ...@@ -6040,7 +6040,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu)
if (sd && sd_degenerate(sd)) { if (sd && sd_degenerate(sd)) {
tmp = sd; tmp = sd;
sd = sd->parent; sd = sd->parent;
destroy_sched_domain(tmp, cpu); destroy_sched_domain(tmp);
if (sd) if (sd)
sd->child = NULL; sd->child = NULL;
} }
...@@ -6050,7 +6050,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu) ...@@ -6050,7 +6050,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu)
rq_attach_root(rq, rd); rq_attach_root(rq, rd);
tmp = rq->sd; tmp = rq->sd;
rcu_assign_pointer(rq->sd, sd); rcu_assign_pointer(rq->sd, sd);
destroy_sched_domains(tmp, cpu); destroy_sched_domains(tmp);
update_top_cache_domain(cpu); update_top_cache_domain(cpu);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment