Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -3
+3 -3
drivers/cpufreq/amd-pstate-ut.c
··· 227 227 goto skip_test; 228 228 } 229 229 230 - if (cpudata->min_freq != policy->min) { 230 + if (cpudata->lowest_nonlinear_freq != policy->min) { 231 231 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); 234 234 goto skip_test; 235 235 } 236 236