Lines Matching refs:capacity
159 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) in topology_set_cpu_scale() argument
161 per_cpu(cpu_scale, cpu) = capacity; in topology_set_cpu_scale()
183 unsigned long max_capacity, capacity, pressure; in topology_update_hw_pressure() local
196 capacity = max_capacity; in topology_update_hw_pressure()
198 capacity = mult_frac(max_capacity, capped_freq, max_freq); in topology_update_hw_pressure()
200 pressure = max_capacity - capacity; in topology_update_hw_pressure()
287 u64 capacity; in topology_normalize_cpu_scale() local
296 capacity = raw_capacity[cpu] * per_cpu(capacity_freq_ref, cpu); in topology_normalize_cpu_scale()
297 capacity_scale = max(capacity, capacity_scale); in topology_normalize_cpu_scale()
302 capacity = raw_capacity[cpu] * per_cpu(capacity_freq_ref, cpu); in topology_normalize_cpu_scale()
303 capacity = div64_u64(capacity << SCHED_CAPACITY_SHIFT, in topology_normalize_cpu_scale()
305 topology_set_cpu_scale(cpu, capacity); in topology_normalize_cpu_scale()
371 u64 capacity, capacity_scale = 0; in topology_init_cpu_capacity_cppc() local
406 capacity = raw_capacity[cpu]; in topology_init_cpu_capacity_cppc()
407 capacity = div64_u64(capacity << SCHED_CAPACITY_SHIFT, in topology_init_cpu_capacity_cppc()
409 topology_set_cpu_scale(cpu, capacity); in topology_init_cpu_capacity_cppc()