Skip to content

Commit 3e93edc

Browse files
dhananjay-AMDsuperm1
authored andcommitted
cpufreq/amd-pstate: Remove the unncecessary driver_lock in amd_pstate_update_limits
There is no need to take a driver wide lock while updating the highest_perf value in the percpu cpudata struct. Hence remove it. Signed-off-by: Dhananjay Ugwekar <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Reviewed-by: Gautham R. Shenoy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mario Limonciello <[email protected]>
1 parent 97a705d commit 3e93edc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,6 @@ static void amd_pstate_update_limits(unsigned int cpu)
832832
if (!policy)
833833
return;
834834

835-
guard(mutex)(&amd_pstate_driver_lock);
836-
837835
if (amd_get_highest_perf(cpu, &cur_high))
838836
return;
839837

0 commit comments

Comments
 (0)