Re: [PATCH v3 2/2] cpufreq: Convert the cpufreq_driver_lock to use the rcu

2013-02-21 Thread Nathan Zimmer
On 02/20/2013 11:50 PM, Viresh Kumar wrote: On 21 February 2013 05:26, Nathan Zimmer wrote: In general rwlocks are discourged so we are moving it to use the rcu instead. This does require a bit of care since the cpufreq_driver_lock protects both the cpufreq_driver and the cpufreq_cpu_data array

Re: [PATCH v3 2/2] cpufreq: Convert the cpufreq_driver_lock to use the rcu

2013-02-20 Thread Viresh Kumar
On 21 February 2013 05:26, Nathan Zimmer wrote: > In general rwlocks are discourged so we are moving it to use the rcu instead. > This does require a bit of care since the cpufreq_driver_lock protects both > the cpufreq_driver and the cpufreq_cpu_data array. > Also since many of the function point

[PATCH v3 2/2] cpufreq: Convert the cpufreq_driver_lock to use the rcu

2013-02-20 Thread Nathan Zimmer
In general rwlocks are discourged so we are moving it to use the rcu instead. This does require a bit of care since the cpufreq_driver_lock protects both the cpufreq_driver and the cpufreq_cpu_data array. Also since many of the function pointers on cpufreq_driver may sleep when called we have to gr