cpufreq: Convert the cpufreq_driver_lock to a rwlock
authorNathan Zimmer <nzimmer@sgi.com>
Fri, 22 Feb 2013 16:24:34 +0000 (16:24 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 31 Mar 2013 23:11:34 +0000 (01:11 +0200)
commit0d1857a1b987ef874aeb4b99c9c385fa5645bf61
treeb26ccf9c501ae14055b8c5a5e5a1e40a8b164f08
parent07961ac7c0ee8b546658717034fe692fd12eefa9
cpufreq: Convert the cpufreq_driver_lock to a rwlock

This eliminates the contention I am seeing in __cpufreq_cpu_get.
It also nicely stages the lock to be replaced by the rcu.

Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c