Commit 61e931ee authored by Dhananjay Ugwekar's avatar Dhananjay Ugwekar Committed by Greg Kroah-Hartman
Browse files

cpufreq: amd-pstate: Remove unnecessary driver_lock in set_boost



[ Upstream commit db1cafc7 ]

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: default avatarDhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Acked-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b82e4965
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment