cpufreq: amd-pstate: Optimize amd_pstate_update_limits()
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 26 Aug 2024 21:13:57 +0000 (16:13 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Sep 2024 15:23:23 +0000 (10:23 -0500)
commit45722e777fd99ea863fe653c1838d39f678506e2
tree1858fb07952e8f15f31157134f9ce8dfe58f28b7
parentad4caad58d91d3293880f8074f7ad125490ce636
cpufreq: amd-pstate: Optimize amd_pstate_update_limits()

Don't take and release the mutex when prefcore isn't present and
avoid initialization of variables that will be initially set
in the function.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Reviewed-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c