Skip to content

Commit 1ca2034

Browse files
deggemanPeter Zijlstra
authored andcommitted
sched/fair: Remove unused 'sd' parameter from scale_rt_capacity()
Since commit 8ec59c0 ("sched/topology: Remove unused 'sd' parameter from arch_scale_cpu_capacity()") it is no longer needed. Signed-off-by: Dietmar Eggemann <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent e3e76a6 commit 1ca2034

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/sched/fair.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8038,7 +8038,7 @@ static inline void init_sd_lb_stats(struct sd_lb_stats *sds)
80388038
};
80398039
}
80408040

8041-
static unsigned long scale_rt_capacity(struct sched_domain *sd, int cpu)
8041+
static unsigned long scale_rt_capacity(int cpu)
80428042
{
80438043
struct rq *rq = cpu_rq(cpu);
80448044
unsigned long max = arch_scale_cpu_capacity(cpu);
@@ -8070,7 +8070,7 @@ static unsigned long scale_rt_capacity(struct sched_domain *sd, int cpu)
80708070

80718071
static void update_cpu_capacity(struct sched_domain *sd, int cpu)
80728072
{
8073-
unsigned long capacity = scale_rt_capacity(sd, cpu);
8073+
unsigned long capacity = scale_rt_capacity(cpu);
80748074
struct sched_group *sdg = sd->groups;
80758075

80768076
cpu_rq(cpu)->cpu_capacity_orig = arch_scale_cpu_capacity(cpu);

0 commit comments

Comments
 (0)