@@ -43,7 +43,7 @@ static ssize_t cpu_capacity_show(struct device *dev,
4343{
4444 struct cpu * cpu = container_of (dev , struct cpu , dev );
4545
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 ));
4747}
4848
4949static void update_topology_flags_workfn (struct work_struct * work );
@@ -116,7 +116,7 @@ void topology_normalize_cpu_scale(void)
116116 / capacity_scale ;
117117 topology_set_cpu_scale (cpu , capacity );
118118 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 ));
120120 }
121121}
122122
@@ -185,7 +185,7 @@ init_cpu_capacity_callback(struct notifier_block *nb,
185185 cpumask_andnot (cpus_to_visit , cpus_to_visit , policy -> related_cpus );
186186
187187 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 ) *
189189 policy -> cpuinfo .max_freq / 1000UL ;
190190 capacity_scale = max (raw_capacity [cpu ], capacity_scale );
191191 }
0 commit comments