Skip to content

Commit a6960e6

Browse files
dhananjay-AMDsuperm1
authored andcommitted
cpufreq/amd-pstate: Align offline flow of shared memory and MSR based systems
Set min_perf to lowest_perf for shared memory systems, similar to the MSR based systems. Signed-off-by: Dhananjay Ugwekar <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Reviewed-by: Gautham R. Shenoy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mario Limonciello <[email protected]>
1 parent 796ff50 commit a6960e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,6 +1658,7 @@ static void amd_pstate_epp_offline(struct cpufreq_policy *policy)
16581658
wrmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, value);
16591659
} else {
16601660
perf_ctrls.desired_perf = 0;
1661+
perf_ctrls.min_perf = min_perf;
16611662
perf_ctrls.max_perf = min_perf;
16621663
cppc_set_perf(cpudata->cpu, &perf_ctrls);
16631664
perf_ctrls.energy_perf = AMD_CPPC_ENERGY_PERF_PREF(HWP_EPP_BALANCE_POWERSAVE);

0 commit comments

Comments
 (0)