Re: [PATCH 1/2] cpufreq: Convert the cpufreq_driver_lock to a rwlock

2013-02-05 Thread Viresh Kumar
On Tue, Feb 5, 2013 at 4:15 AM, Nathan Zimmer wrote: > This completely eliminates the contention I am seeing in __cpufreq_cpu_get. > It also nicely stages the lock to be replaced by the rcu. > > CC: "Rafael J. Wysocki" > Signed-off-by: Nathan Zimmer > --- > drivers/cpufreq/cpufreq.c | 44 ++

[PATCH 1/2] cpufreq: Convert the cpufreq_driver_lock to a rwlock

2013-02-04 Thread Nathan Zimmer
This completely eliminates the contention I am seeing in __cpufreq_cpu_get. It also nicely stages the lock to be replaced by the rcu. CC: "Rafael J. Wysocki" Signed-off-by: Nathan Zimmer --- drivers/cpufreq/cpufreq.c | 44 ++-- 1 file changed, 22 insertio