Skip to content

Commit

Permalink
cpufreq: convert cpufreq_driver to using RCU
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nathan Zimmer authored and rafaeljw committed Apr 10, 2013
1 parent 6eb1c37 commit 5800043
Showing 1 changed file with 208 additions and 67 deletions.
Loading

0 comments on commit 5800043

Please sign in to comment.