Skip to content

Commit 0d6abcd

Browse files
committed
NVIDIA: SAUCE: ACPI: CPPC: Update to cppc_set_perf_ctrls API
Fixes compilation error when `cppc_set_perf` is no longer available. Commit 9079641 ("NVIDIA: SAUCE: ACPI: CPPC: rename cppc_perf apis") began this renaming, but it was incomplete and depended on b1089e0 ("cpufreq/amd-pstate: Refactor amd_pstate_epp_reenable() and amd_pstate_epp_offline()") for full `cppc_set_perf` removal. This branch lacks 9079641, leading to this build issue. Signed-off-by: Nirmoy Das <[email protected]>
1 parent c3f3810 commit 0d6abcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ static int amd_pstate_cpu_boost_update(struct cpufreq_policy *policy, bool on)
709709
wrmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, value);
710710
} else {
711711
perf_ctrls.max_perf = on ? highest_perf : nominal_perf;
712-
ret = cppc_set_perf(cpudata->cpu, &perf_ctrls);
712+
ret = cppc_set_perf_ctrls(cpudata->cpu, &perf_ctrls);
713713
if (ret) {
714714
cpufreq_cpu_release(policy);
715715
pr_debug("Failed to set max perf on CPU:%d. ret:%d\n",
@@ -1662,7 +1662,7 @@ static void amd_pstate_epp_reenable(struct amd_cpudata *cpudata)
16621662
} else {
16631663
perf_ctrls.max_perf = max_perf;
16641664
perf_ctrls.energy_perf = AMD_CPPC_ENERGY_PERF_PREF(cpudata->epp_cached);
1665-
cppc_set_perf(cpudata->cpu, &perf_ctrls);
1665+
cppc_set_perf_ctrls(cpudata->cpu, &perf_ctrls);
16661666
}
16671667
}
16681668

@@ -1704,7 +1704,7 @@ static void amd_pstate_epp_offline(struct cpufreq_policy *policy)
17041704
perf_ctrls.desired_perf = 0;
17051705
perf_ctrls.max_perf = min_perf;
17061706
perf_ctrls.energy_perf = AMD_CPPC_ENERGY_PERF_PREF(HWP_EPP_BALANCE_POWERSAVE);
1707-
cppc_set_perf(cpudata->cpu, &perf_ctrls);
1707+
cppc_set_perf_ctrls(cpudata->cpu, &perf_ctrls);
17081708
}
17091709
mutex_unlock(&amd_pstate_limits_lock);
17101710
}

0 commit comments

Comments
 (0)