cpufreq/amd-pstate: Drop boost_state variable
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Dec 2024 18:52:48 +0000 (12:52 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Dec 2024 16:44:53 +0000 (10:44 -0600)
commit95fad7fb58cfaa2a295aa54a1f001a16b9324963
treeaf1770ce5a2ff4faca17a248a416c45abf8c7e1c
parentf9a378ff6443cdcd4387e5dbb76fa5fa549a83ec
cpufreq/amd-pstate: Drop boost_state variable

Currently boost_state is cached for every processor in cpudata structure
and driver boost state is set for every processor.

Both of these aren't necessary as the driver only needs to set once and
the policy stores whether boost is enabled.

Move the driver boost setting to registration and adjust all references
to cached value to pull from the policy instead.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20241209185248.16301-16-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c
drivers/cpufreq/amd-pstate.h