27 lines
838 B
Diff
27 lines
838 B
Diff
From 9b7b7d59c5425246ffda281e761ef3ec3b0e4fbc Mon Sep 17 00:00:00 2001
|
|
From: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
|
|
Date: Wed, 5 Feb 2025 11:25:23 +0000
|
|
Subject: 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 <dhananjay.ugwekar@amd.com>
|
|
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
|
|
---
|
|
drivers/cpufreq/amd-pstate.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
--- a/drivers/cpufreq/amd-pstate.c
|
|
+++ b/drivers/cpufreq/amd-pstate.c
|
|
@@ -832,8 +832,6 @@ static void amd_pstate_update_limits(uns
|
|
if (!policy)
|
|
return;
|
|
|
|
- guard(mutex)(&amd_pstate_driver_lock);
|
|
-
|
|
if (amd_get_highest_perf(cpu, &cur_high))
|
|
return;
|
|
|