From: Viresh Kumar Date: Tue, 6 Aug 2013 17:23:11 +0000 (+0530) Subject: cpufreq: Use rwsem for protecting critical sections X-Git-Tag: v3.12-rc1~178^2~4^2~1^2~15^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eed9404ab3c4;p=pandora-kernel.git cpufreq: Use rwsem for protecting critical sections Critical sections of the cpufreq core are protected with the help of the driver module owner's refcount, which isn't the correct approach, because it causes rmmod to return an error when some routine has updated that refcount. Let's use rwsem for this purpose instead. Only cpufreq_unregister_driver() will use write sem and everybody else will use read sem. [rjw: Subject & changelog] Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed