Skip to content

Commit b162947

Browse files
committed
cpufreq/amd-pstate-ut: Add fix for min freq unit test
JIRA: https://issues.redhat.com/browse/RHEL-75925 commit 31f9056 Author: Mario Limonciello <mario.limonciello@amd.com> Date: Thu Oct 17 12:34:39 2024 -0500 cpufreq/amd-pstate-ut: Add fix for min freq unit test commit 642aff3964b0f ("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: 642aff3964b0f ("cpufreq/amd-pstate: Set the initial min_freq to lowest_nonlinear_freq") Link: https://lore.kernel.org/r/20241017173439.4924-1-mario.limonciello@amd.com Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Steve Best <sbest@redhat.com>
1 parent 873eeb3 commit b162947

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
@@ -225,10 +225,10 @@ static void amd_pstate_ut_check_freq(u32 index)
225225
goto skip_test;
226226
}
227227

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

0 commit comments

Comments
 (0)