|
@@ -7488,10 +7488,10 @@ static inline int get_sd_load_idx(struct sched_domain *sd,
|
|
|
return load_idx;
|
|
|
}
|
|
|
|
|
|
-static unsigned long scale_rt_capacity(int cpu)
|
|
|
+static unsigned long scale_rt_capacity(struct sched_domain *sd, int cpu)
|
|
|
{
|
|
|
struct rq *rq = cpu_rq(cpu);
|
|
|
- unsigned long max = arch_scale_cpu_capacity(NULL, cpu);
|
|
|
+ unsigned long max = arch_scale_cpu_capacity(sd, cpu);
|
|
|
unsigned long used, free;
|
|
|
unsigned long irq;
|
|
|
|
|
@@ -7513,7 +7513,7 @@ static unsigned long scale_rt_capacity(int cpu)
|
|
|
|
|
|
static void update_cpu_capacity(struct sched_domain *sd, int cpu)
|
|
|
{
|
|
|
- unsigned long capacity = scale_rt_capacity(cpu);
|
|
|
+ unsigned long capacity = scale_rt_capacity(sd, cpu);
|
|
|
struct sched_group *sdg = sd->groups;
|
|
|
|
|
|
cpu_rq(cpu)->cpu_capacity_orig = arch_scale_cpu_capacity(sd, cpu);
|