From: viresh kumar Date: Fri, 18 Oct 2013 13:40:15 +0000 (+0530) Subject: cpufreq: create per policy rwsem instead of per CPU cpu_policy_rwsem X-Git-Tag: v3.13-rc1~96^2~12^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad7722dab7292dbc1c4586d701ac226b68122d39;p=pandora-kernel.git cpufreq: create per policy rwsem instead of per CPU cpu_policy_rwsem We have per-CPU cpu_policy_rwsem for cpufreq core, but we never use all of them. We always use rwsem of policy->cpu and so we can actually make this rwsem per policy instead. This patch does this change. With this change other tricky situations are also avoided now, like which lock to take while we are changing policy->cpu, etc. Suggested-by: Srivatsa S. Bhat Signed-off-by: Viresh Kumar Reviewed-by: Srivatsa S. Bhat Tested-by: Andrew Lunn Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed