@@ -43,7 +43,7 @@ static ssize_t cpu_capacity_show(struct device *dev,
43
43
{
44
44
struct cpu * cpu = container_of (dev , struct cpu , dev );
45
45
46
- return sprintf (buf , "%lu\n" , topology_get_cpu_scale (NULL , cpu -> dev .id ));
46
+ return sprintf (buf , "%lu\n" , topology_get_cpu_scale (cpu -> dev .id ));
47
47
}
48
48
49
49
static void update_topology_flags_workfn (struct work_struct * work );
@@ -116,7 +116,7 @@ void topology_normalize_cpu_scale(void)
116
116
/ capacity_scale ;
117
117
topology_set_cpu_scale (cpu , capacity );
118
118
pr_debug ("cpu_capacity: CPU%d cpu_capacity=%lu\n" ,
119
- cpu , topology_get_cpu_scale (NULL , cpu ));
119
+ cpu , topology_get_cpu_scale (cpu ));
120
120
}
121
121
}
122
122
@@ -185,7 +185,7 @@ init_cpu_capacity_callback(struct notifier_block *nb,
185
185
cpumask_andnot (cpus_to_visit , cpus_to_visit , policy -> related_cpus );
186
186
187
187
for_each_cpu (cpu , policy -> related_cpus ) {
188
- raw_capacity [cpu ] = topology_get_cpu_scale (NULL , cpu ) *
188
+ raw_capacity [cpu ] = topology_get_cpu_scale (cpu ) *
189
189
policy -> cpuinfo .max_freq / 1000UL ;
190
190
capacity_scale = max (raw_capacity [cpu ], capacity_scale );
191
191
}
0 commit comments