cpufreq: amd-pstate-ut: Modify the function to get the highest_perf value
authorMeng Li <li.meng@amd.com>
Thu, 3 Aug 2023 01:43:54 +0000 (09:43 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 11 Aug 2023 06:17:16 +0000 (11:47 +0530)
commitd3dec5bb61ce113cc84146bf4a72f752256d3767
treeea4cdd102d4c5538514bdcf27e2365e9d0111b20
parent216710a492dde71fc7674e9962727bccb08dfaeb
cpufreq: amd-pstate-ut: Modify the function to get the highest_perf value

The previous function amd_get_highest_perf() will be deprecated.
It can only return 166 or 255 by cpuinfo. For platforms that
support preferred core, the value of highest perf can be between
166 and 255. Therefore, it will cause amd-pstate-ut to fail when
run amd_pstate_ut_check_perf().

Signed-off-by: Meng Li <li.meng@amd.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/amd-pstate-ut.c