lkml.org 
[lkml]   [2016]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3 v3] cpufreq: governor: Replace timers with utilization update callbacks
On 08-02-16, 03:08, Rafael J. Wysocki wrote:
> Moreover, update_sampling_rate() doesn't need to walk the cpu_dbs_infos,
> it may walk policies instead. Like after the (untested) appended patch.
>
> Then, if we have a governor_data_lock in struct policy, we can use that
> to protect policy_dbs while it is being access there and we're done.
>
> I'll try to prototype something along these lines tomorrow.

I have solved that in a different way, and dropped the lock from
update_sampling_rate(). Please see if that looks good.

--
viresh

\
 
 \ /
  Last update: 2016-02-08 13:21    [W:0.075 / U:1.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site