Lines Matching full:scaling

124  * @perf_ctl_scaling:	PERF_CTL P-state to frequency scaling factor
125 * @scaling: Scaling factor between performance and frequency
139 int scaling; member
155 * Stores the voltage data for DVFS (Dynamic Voltage and Frequency Scaling)
270 * @get_scaling: Callback to get frequency scaling factor
271 * @get_cpu_scaling: Get frequency scaling factor for a given cpu
512 * scaling factor between HWP performance levels and CPU frequency will be less
513 * than the scaling factor between P-state values and CPU frequency.
523 int scaling = cpu->pstate.scaling; in intel_pstate_hybrid_hwp_adjust() local
531 pr_debug("CPU%d: HWP-to-frequency scaling factor: %d\n", cpu->cpu, scaling); in intel_pstate_hybrid_hwp_adjust()
534 * If the product of the HWP performance scaling factor and the HWP_CAP in intel_pstate_hybrid_hwp_adjust()
537 * scaling factor is too high, so recompute it to make the HWP_CAP in intel_pstate_hybrid_hwp_adjust()
540 if (turbo_freq < cpu->pstate.turbo_pstate * scaling) { in intel_pstate_hybrid_hwp_adjust()
542 scaling = DIV_ROUND_UP(turbo_freq, cpu->pstate.turbo_pstate); in intel_pstate_hybrid_hwp_adjust()
543 cpu->pstate.scaling = scaling; in intel_pstate_hybrid_hwp_adjust()
545 pr_debug("CPU%d: refined HWP-to-frequency scaling factor: %d\n", in intel_pstate_hybrid_hwp_adjust()
546 cpu->cpu, scaling); in intel_pstate_hybrid_hwp_adjust()
549 cpu->pstate.max_freq = rounddown(cpu->pstate.max_pstate * scaling, in intel_pstate_hybrid_hwp_adjust()
554 scaling); in intel_pstate_hybrid_hwp_adjust()
561 cpu->pstate.min_pstate = DIV_ROUND_UP(cpu->pstate.min_freq, scaling); in intel_pstate_hybrid_hwp_adjust()
881 freq = ratio * cpu->pstate.scaling; in show_base_frequency()
882 if (cpu->pstate.scaling != cpu->pstate.perf_ctl_scaling) in show_base_frequency()
909 int scaling = cpu->pstate.scaling; in intel_pstate_get_hwp_cap() local
913 cpu->pstate.max_freq = cpu->pstate.max_pstate * scaling; in intel_pstate_get_hwp_cap()
914 cpu->pstate.turbo_freq = cpu->pstate.turbo_pstate * scaling; in intel_pstate_get_hwp_cap()
915 if (scaling != cpu->pstate.perf_ctl_scaling) { in intel_pstate_get_hwp_cap()
996 * active mode "performance" scaling algorithm, replace that in intel_pstate_hwp_offline()
1819 trace_cpu_frequency(pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_set_pstate()
1856 cpu->pstate.scaling = pstate_funcs.get_cpu_scaling(cpu->cpu); in intel_pstate_get_cpu_pstates()
1857 if (cpu->pstate.scaling != perf_ctl_scaling) in intel_pstate_get_cpu_pstates()
1860 cpu->pstate.scaling = perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
1863 cpu->pstate.scaling = perf_ctl_scaling; in intel_pstate_get_cpu_pstates()
1868 if (cpu->pstate.scaling == perf_ctl_scaling) { in intel_pstate_get_cpu_pstates()
2116 trace_cpu_frequency(target_pstate * cpu->pstate.scaling, cpu->cpu); in intel_pstate_adjust_pstate()
2363 if (cpu->pstate.scaling != perf_ctl_scaling) { in intel_pstate_update_perf_limits()
2364 int scaling = cpu->pstate.scaling; in intel_pstate_update_perf_limits() local
2368 max_policy_perf = DIV_ROUND_UP(freq, scaling); in intel_pstate_update_perf_limits()
2370 min_policy_perf = DIV_ROUND_UP(freq, scaling); in intel_pstate_update_perf_limits()
2742 target_pstate = DIV_ROUND_UP(freqs.new, cpu->pstate.scaling); in intel_cpufreq_target()
2745 target_pstate = freqs.new / cpu->pstate.scaling; in intel_cpufreq_target()
2748 target_pstate = DIV_ROUND_CLOSEST(freqs.new, cpu->pstate.scaling); in intel_cpufreq_target()
2754 freqs.new = target_pstate * cpu->pstate.scaling; in intel_cpufreq_target()
2769 target_pstate = DIV_ROUND_UP(target_freq, cpu->pstate.scaling); in intel_cpufreq_fast_switch()
2773 return target_pstate * cpu->pstate.scaling; in intel_cpufreq_fast_switch()