lkml.org 
[lkml]   [2014]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] cpufreq: unlock when failing cpufreq_update_policy()
From
On 18 June 2014 20:09, Aaron Plattner <aplattner@nvidia.com> wrote:
> I assume you meant "return -ENODEV"?

Yeah, sorry :)

>> down_write(&policy->rwsem);
>>
>> @@ -2279,10 +2277,10 @@ int cpufreq_update_policy(unsigned int cpu)
>>
>> ret = cpufreq_set_policy(policy, &new_policy);
>>
>> +no_policy:
>
>
> 'no_policy' implied to me that policy was NULL, so this label should still
> be renamed to 'unlock'. I'll send out a v2 that does this.

Yeah.


\
 
 \ /
  Last update: 2014-06-18 17:21    [W:0.065 / U:1.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site