]> git.ipfire.org Git - thirdparty/linux.git/commit
cpufreq/amd-pstate-ut: Adjust variable scope
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 14 Feb 2025 22:34:23 +0000 (16:34 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 6 Mar 2025 19:01:25 +0000 (13:01 -0600)
commitc630458c7a4b990742905e312af20a7c3260ca14
treed249d90d0a70e7e9a6cb456c6740d9904b8eea11
parent2aac38ac06cb751bd3e672a4fb1eb3073f1866ab
cpufreq/amd-pstate-ut: Adjust variable scope

In amd_pstate_ut_check_freq() and amd_pstate_ut_check_perf() the cpudata
variable is only needed in the scope of the for loop. Move it there.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Reviewed-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate-ut.c