Lines Matching full: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()
168 * @cpus : The related CPUs for which capacity has been reduced
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()
249 cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "topology/cpu-capacity", in register_cpu_capacity_sysctl()
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()
321 ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz", in topology_parse_cpu_capacity()
351 pr_err("cpu_capacity: missing %pOF raw capacity\n", in topology_parse_cpu_capacity()
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()
442 pr_debug("cpu_capacity: init cpu capacity for CPUs [%*pbl] (to_visit=%*pbl)\n", in init_cpu_capacity_callback()
477 * information is not needed for cpu capacity initialization. in register_cpufreq_notifier()