aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-region.c
diff options
context:
space:
mode:
authorMatthew Wilcox <[email protected]>2016-12-21 17:47:05 +0000
committerZhang Rui <[email protected]>2017-01-04 04:47:28 +0000
commitae606089621ef0349402cfcbeca33a82abbd0fd0 (patch)
tree2d949e660aef3149afd7554f0c626fdf7b079a45 /drivers/fpga/fpga-region.c
parentthermal: convert clock cooling to use an IDA (diff)
downloadkernel-ae606089621ef0349402cfcbeca33a82abbd0fd0.tar.gz
kernel-ae606089621ef0349402cfcbeca33a82abbd0fd0.zip
thermal: convert cpu_cooling to use an IDA
thermal cpu cooling does not use the ability to look up pointers by ID, so convert it from using an IDR to the more space-efficient IDA. The cooling_cpufreq_lock was being used to protect cpufreq_dev_count as well as the IDR. Rather than keep the mutex to protect a single integer, I expanded the scope of cooling_list_lock to also cover cpufreq_dev_count. We could also convert cpufreq_dev_count into an atomic. Signed-off-by: Matthew Wilcox <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions