Searched hist:ad7722dab7292dbc1c4586d701ac226b68122d39 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | cpufreq.h | diff ad7722dab7292dbc1c4586d701ac226b68122d39 Fri Oct 18 08:40:15 CDT 2013 viresh kumar <viresh.kumar@linaro.org> 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 <srivatsa.bhat@linux.vnet.ibm.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Tested-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|
/openbmc/linux/drivers/cpufreq/ |
H A D | cpufreq.c | diff ad7722dab7292dbc1c4586d701ac226b68122d39 Fri Oct 18 08:40:15 CDT 2013 viresh kumar <viresh.kumar@linaro.org> 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 <srivatsa.bhat@linux.vnet.ibm.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Tested-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|