]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: convert cpufreq_driver to using RCU
authorNathan Zimmer <nzimmer@sgi.com>
Thu, 4 Apr 2013 14:53:25 +0000 (14:53 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Apr 2013 11:19:26 +0000 (13:19 +0200)
commit9b9ea516ac360fa8a95af74a63b5665ac509d371
tree87e64e06920fa4483c01363d5b8d59928b0082e5
parent08d34524bb9babdae16570b27a70012bf2c6501d
cpufreq: convert cpufreq_driver to using RCU

We eventually would like to remove the rwlock cpufreq_driver_lock or
convert it back to a spinlock and protect the read sections with RCU.
The first step in that direction is to make cpufreq_driver use RCU.
I don't see an easy wasy to protect the cpufreq_cpu_data structure
with RCU, so I am leaving it with the rwlock for now since under
certain configs __cpufreq_cpu_get is a hot spot with 256+ cores.

[rjw: Subject, changelog, white space]
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