Lines Matching full:scaling

129  * @perf_ctl_scaling:	PERF_CTL P-state to frequency scaling factor
130 * @scaling: Scaling factor between performance and frequency
144 int scaling; member
160 * Stores the voltage data for DVFS (Dynamic Voltage and Frequency Scaling)
278 * @get_scaling: Callback to get frequency scaling factor
279 * @get_cpu_scaling: Get frequency scaling factor for a given cpu
425 * Compute the perf-to-frequency scaling factor for the given CPU if in intel_pstate_cppc_get_scaling()
546 return freq / cpu->pstate.scaling; in intel_pstate_freq_to_hwp_rel()
548 return DIV_ROUND_CLOSEST(freq, cpu->pstate.scaling); in intel_pstate_freq_to_hwp_rel()
551 return DIV_ROUND_UP(freq, cpu->pstate.scaling); in intel_pstate_freq_to_hwp_rel()
565 * scaling factor between HWP performance levels and CPU frequency will be less
566 * than the scaling factor between P-state values and CPU frequency.
575 int scaling = cpu->pstate.scaling; in intel_pstate_hybrid_hwp_adjust() local
583 pr_debug("CPU%d: HWP-to-frequency scaling factor: %d\n", cpu->cpu, scaling); in intel_pstate_hybrid_hwp_adjust()
585 cpu->pstate.turbo_freq = rounddown(cpu->pstate.turbo_pstate * scaling, in intel_pstate_hybrid_hwp_adjust()
587 cpu->pstate.max_freq = rounddown(cpu->pstate.max_pstate * scaling, in intel_pstate_hybrid_hwp_adjust()
931 freq = ratio * cpu->pstate.scaling; in show_base_frequency()
932 if (cpu->pstate.scaling != cpu->pstate.perf_ctl_scaling) in show_base_frequency()
988 * The smaller the perf-to-frequency scaling factor, the larger the IPC in hybrid_get_cost()
991 * the scaling factors for different CPU types will differ by at least in hybrid_get_cost()
997 *cost = div_u64(100ULL * INTEL_PSTATE_CORE_SCALING, pstate->scaling) + freq; in hybrid_get_cost()
1164 * so register them all after setting up CPU capacity scaling. in hybrid_refresh_cpu_capacity_scaling()
1177 * scaling has been enabled already and the driver is just changing the in hybrid_init_cpu_capacity_scaling()
1224 int scaling = cpu->pstate.scaling; in intel_pstate_get_hwp_cap() local
1228 cpu->pstate.max_freq = cpu->pstate.max_pstate * scaling; in intel_pstate_get_hwp_cap()
1229 cpu->pstate.turbo_freq = cpu->pstate.turbo_pstate * scaling; in intel_pstate_get_hwp_cap()
1230 if (scaling != cpu->pstate.perf_ctl_scaling) { in intel_pstate_get_hwp_cap()
1275 * capacity scaling has been enabled already. In that case, sched in hybrid_update_capacity()
1360 * active mode "performance" scaling algorithm, replace that in intel_pstate_hwp_offline()
1368 * scaling algorithm is still in effect. in intel_pstate_hwp_offline()
2338 * Return the hybrid scaling factor for P-cores and use the in hwp_get_cpu_scaling()
2339 * default core scaling for E-cores. in hwp_get_cpu_scaling()
2348 /* Use core scaling on non-hybrid systems. */ in hwp_get_cpu_scaling()
2353 * The system is hybrid, but the hybrid scaling factor is not known or in hwp_get_cpu_scaling()
2355 * scaling factor for this CPU. in hwp_get_cpu_scaling()
2362 trace_cpu_frequency(pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_set_pstate()
2391 cpu->pstate.scaling = pstate_funcs.get_cpu_scaling(cpu->cpu); in intel_pstate_get_cpu_pstates()
2392 if (cpu->pstate.scaling != perf_ctl_scaling) { in intel_pstate_get_cpu_pstates()
2397 cpu->pstate.scaling = perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
2401 * offline initially, asym capacity scaling needs to be updated. in intel_pstate_get_cpu_pstates()
2405 cpu->pstate.scaling = perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
2410 if (cpu->pstate.scaling == perf_ctl_scaling) { in intel_pstate_get_cpu_pstates()
2656 trace_cpu_frequency(target_pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_adjust_pstate()
2902 if (hwp_active && cpu->pstate.scaling != perf_ctl_scaling) { in intel_pstate_update_perf_limits()
3282 freqs.new = target_pstate * cpu->pstate.scaling; in intel_cpufreq_target()
3299 return target_pstate * cpu->pstate.scaling; in intel_cpufreq_fast_switch()
3912 pr_debug("hybrid scaling factor: %d\n", hybrid_scaling_factor); in intel_pstate_init()