Skip to content

Commit 31f9056

Browse files
committed
cpufreq/amd-pstate-ut: Add fix for min freq unit test
commit 642aff3 ("cpufreq/amd-pstate: Set the initial min_freq to lowest_nonlinear_freq") changed the initial minimum frequency to lowest nonlinear frequency, but the unit tests weren't updated and now fail. Update them to match this same change. Fixes: 642aff3 ("cpufreq/amd-pstate: Set the initial min_freq to lowest_nonlinear_freq") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mario Limonciello <[email protected]>
1 parent 54ab7d7 commit 31f9056

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/cpufreq/amd-pstate-ut.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ static void amd_pstate_ut_check_freq(u32 index)
227227
goto skip_test;
228228
}
229229

230-
if (cpudata->min_freq != policy->min) {
230+
if (cpudata->lowest_nonlinear_freq != policy->min) {
231231
amd_pstate_ut_cases[index].result = AMD_PSTATE_UT_RESULT_FAIL;
232-
pr_err("%s cpu%d cpudata_min_freq=%d policy_min=%d, they should be equal!\n",
233-
__func__, cpu, cpudata->min_freq, policy->min);
232+
pr_err("%s cpu%d cpudata_lowest_nonlinear_freq=%d policy_min=%d, they should be equal!\n",
233+
__func__, cpu, cpudata->lowest_nonlinear_freq, policy->min);
234234
goto skip_test;
235235
}
236236

0 commit comments

Comments
 (0)