]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ad4aca6fcd9dda916bf2fc146bfb1ad858dffaf
treeb26ccf9c501ae14055b8c5a5e5a1e40a8b164f08
parentf64b98f6321b322ab9cd9e57f5d96e9055875194
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