History

cpufreq/amd-pstate: Fix scaling_min_freq and scaling_max_freq update

When amd_pstate is running, writing to scaling_min_freq and scaling_max_freq has no effect. These values are only passed to the policy level, but not to the platform level. This means that the platform does not know about the frequency limits set by the user. To fix this, update the min_perf and max_perf values at the platform level whenever the user changes the scaling_min_freq and scaling_max_freq values.

Wyes Karny committed 2 years ago

Commit febab201 parent bb87be22 files · +51 −13Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/amd-pstate.h+4−0
@@ -70,6 +70,10 @@ struct amd_cpudata { · 69 unmodified lines
7070 u32 nominal_perf;
7171 u32 lowest_nonlinear_perf;
7272 u32 lowest_perf;
73+ u32 min_limit_perf;
74+ u32 max_limit_perf;
75+ u32 min_limit_freq;
76+ u32 max_limit_freq;
7377
7478 u32 max_freq;
7579 u32 min_freq;