]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: amd-pstate: Remove unnecessary driver_lock in set_boost
authorDhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Thu, 30 Jan 2025 08:52:52 +0000 (08:52 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 6 Feb 2025 03:34:30 +0000 (09:04 +0530)
commitdb1cafc77aaaf871509da06f4a864e9af6d6791f
tree166653d4d67a718436943f39cef2460c4d65a098
parent4742da9774a416908ef8e3916164192c15c0e2d1
cpufreq: amd-pstate: Remove unnecessary driver_lock in set_boost

set_boost is a per-policy function call, hence a driver wide lock is
unnecessary. Also this mutex_acquire can collide with the mutex_acquire
from the mode-switch path in status_store(), which can lead to a
deadlock. So, remove it.

Signed-off-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Acked-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/amd-pstate.c