]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq/amd-pstate: Pass the policy to amd_pstate_update()
authorK Prateek Nayak <kprateek.nayak@amd.com>
Mon, 16 Mar 2026 08:18:48 +0000 (08:18 +0000)
committerMario Limonciello (AMD) <superm1@kernel.org>
Thu, 2 Apr 2026 16:30:24 +0000 (11:30 -0500)
commit86d71f1d7686cecebbafb371ad58c6ad7f80a93a
tree19b9b00a64ee71755a011be2667cdea091ad5a38
parent7e173bc310d2b1df018edc66334a5304305889a2
cpufreq/amd-pstate: Pass the policy to amd_pstate_update()

All callers of amd_pstate_update() already have a reference to the
cpufreq_policy object.

Pass the entire policy object and grab the cpudata using
"policy->driver_data" instead of passing the cpudata and unnecessarily
grabbing another read-side reference to the cpufreq policy object when
it is already available in the caller.

No functional changes intended.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20260316081849.19368-2-kprateek.nayak@amd.com
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
drivers/cpufreq/amd-pstate.c