Re: [RFC PATCH 02/19] cpufreq: merge governor lock and mutex
From: Viresh Kumar
Date: Tue Jan 12 2016 - 04:00:32 EST
On 11-01-16, 17:35, Juri Lelli wrote:
> From: Michael Turquette <mturquette@xxxxxxxxxxxx>
>
> Commit 95731ebb114c ("cpufreq: Fix governor start/stop race condition")
> introduced cpufreq_governor_lock. This was actually overkilling, as the
> same can be achieved by using the existing cpufreq_governor_mutex.
> Removing cpufreq_governor_lock cleans things up and makes deadlocks less
> likely to happen.
>
> Cc: "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>
> Cc: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
> Signed-off-by: Michael Turquette <mturquette@xxxxxxxxxxxx>
> ---
> drivers/cpufreq/cpufreq.c | 13 ++++++-------
> 1 file changed, 6 insertions(+), 7 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
--
viresh