Lines Matching refs:min_perf
236 static void msr_update_perf(struct amd_cpudata *cpudata, u32 min_perf, in msr_update_perf() argument
249 u32 min_perf, u32 des_perf, in amd_pstate_update_perf() argument
252 static_call(amd_pstate_update_perf)(cpudata, min_perf, des_perf, in amd_pstate_update_perf()
446 u32 min_perf, u32 des_perf, in shmem_update_perf() argument
452 perf_ctrls.min_perf = min_perf; in shmem_update_perf()
491 static void amd_pstate_update(struct amd_cpudata *cpudata, u32 min_perf, in amd_pstate_update() argument
500 min_perf = clamp_t(unsigned long, min_perf, cpudata->min_limit_perf, in amd_pstate_update()
504 des_perf = clamp_t(unsigned long, des_perf, min_perf, max_perf); in amd_pstate_update()
510 min_perf = des_perf; in amd_pstate_update()
515 value |= AMD_CPPC_MIN_PERF(min_perf); in amd_pstate_update()
528 trace_amd_pstate_perf(min_perf, des_perf, max_perf, cpudata->freq, in amd_pstate_update()
538 amd_pstate_update_perf(cpudata, min_perf, des_perf, in amd_pstate_update()
601 unsigned long max_perf, min_perf, des_perf, cap_perf; in amd_pstate_update_freq() local
610 min_perf = READ_ONCE(cpudata->lowest_perf); in amd_pstate_update_freq()
628 amd_pstate_update(cpudata, min_perf, des_perf, in amd_pstate_update_freq()
657 unsigned long max_perf, min_perf, des_perf, in amd_pstate_adjust_perf() local
678 min_perf = READ_ONCE(cpudata->lowest_perf); in amd_pstate_adjust_perf()
680 min_perf = DIV_ROUND_UP(cap_perf * _min_perf, capacity); in amd_pstate_adjust_perf()
682 if (min_perf < lowest_nonlinear_perf) in amd_pstate_adjust_perf()
683 min_perf = lowest_nonlinear_perf; in amd_pstate_adjust_perf()
686 if (max_perf < min_perf) in amd_pstate_adjust_perf()
687 max_perf = min_perf; in amd_pstate_adjust_perf()
689 des_perf = clamp_t(unsigned long, des_perf, min_perf, max_perf); in amd_pstate_adjust_perf()
691 amd_pstate_update(cpudata, min_perf, des_perf, max_perf, true, in amd_pstate_adjust_perf()
1533 u32 max_perf, min_perf; in amd_pstate_epp_update_limit() local
1538 min_perf = READ_ONCE(cpudata->lowest_perf); in amd_pstate_epp_update_limit()
1543 min_perf = clamp_t(unsigned long, min_perf, cpudata->min_limit_perf, in amd_pstate_epp_update_limit()
1548 min_perf = min(cpudata->nominal_perf, max_perf); in amd_pstate_epp_update_limit()
1552 value |= AMD_CPPC_MIN_PERF(min_perf); in amd_pstate_epp_update_limit()
1647 int min_perf; in amd_pstate_epp_offline() local
1650 min_perf = READ_ONCE(cpudata->lowest_perf); in amd_pstate_epp_offline()
1659 value |= AMD_CPPC_MAX_PERF(min_perf); in amd_pstate_epp_offline()
1661 value |= AMD_CPPC_MIN_PERF(min_perf); in amd_pstate_epp_offline()
1665 perf_ctrls.min_perf = min_perf; in amd_pstate_epp_offline()
1666 perf_ctrls.max_perf = min_perf; in amd_pstate_epp_offline()