Re: [RFC PATCH 10/19] cpufreq: assert policy->rwsem is held in cpufreq_set_policy

From: Viresh Kumar
Date: Tue Jan 12 2016 - 05:15:16 EST


On 11-01-16, 17:35, Juri Lelli wrote:
> Since cpufreq_set_policy is modifying policy, it has to work under policy->
> rwsem protection.
>
> Assert such condition.
>
> Cc: "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>
> Cc: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
> Signed-off-by: Juri Lelli <juri.lelli@xxxxxxx>
> ---
> drivers/cpufreq/cpufreq.c | 2 ++
> 1 file changed, 2 insertions(+)

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

--
viresh