Skip to content

Commit f39180e

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
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: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 0176bea commit f39180e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

kernel/sched/core.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5952,15 +5952,15 @@ static void free_sched_domain(struct rcu_head *rcu)
59525952
kfree(sd);
59535953
}
59545954

5955-
static void destroy_sched_domain(struct sched_domain *sd, int cpu)
5955+
static void destroy_sched_domain(struct sched_domain *sd)
59565956
{
59575957
call_rcu(&sd->rcu, free_sched_domain);
59585958
}
59595959

5960-
static void destroy_sched_domains(struct sched_domain *sd, int cpu)
5960+
static void destroy_sched_domains(struct sched_domain *sd)
59615961
{
59625962
for (; sd; sd = sd->parent)
5963-
destroy_sched_domain(sd, cpu);
5963+
destroy_sched_domain(sd);
59645964
}
59655965

59665966
/*
@@ -6032,15 +6032,15 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu)
60326032
*/
60336033
if (parent->flags & SD_PREFER_SIBLING)
60346034
tmp->flags |= SD_PREFER_SIBLING;
6035-
destroy_sched_domain(parent, cpu);
6035+
destroy_sched_domain(parent);
60366036
} else
60376037
tmp = tmp->parent;
60386038
}
60396039

60406040
if (sd && sd_degenerate(sd)) {
60416041
tmp = sd;
60426042
sd = sd->parent;
6043-
destroy_sched_domain(tmp, cpu);
6043+
destroy_sched_domain(tmp);
60446044
if (sd)
60456045
sd->child = NULL;
60466046
}
@@ -6050,7 +6050,7 @@ cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu)
60506050
rq_attach_root(rq, rd);
60516051
tmp = rq->sd;
60526052
rcu_assign_pointer(rq->sd, sd);
6053-
destroy_sched_domains(tmp, cpu);
6053+
destroy_sched_domains(tmp);
60546054

60556055
update_top_cache_domain(cpu);
60566056
}

0 commit comments

Comments
 (0)