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 <Dhananjay.Ugwekar@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Link: https://lore.kernel.org/r/20241023102108.5980-5-Dhananjay.Ugwekar@amd.com Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
1 parent 796ff50 commit a6960e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)