提交 c9385887 编写于 作者: S Sudeep Holla

cpufreq: vexpress-spc: Switch cpumask from topology core to OPP sharing

Since commit ca74b316 ("arm: Use common cpu_topology structure and
functions.") the core cpumask has to be modified during cpu hotplug
operations. So using them to set up cpufreq policy cpumask may be
incorrect as it may contain only cpus that are online at that instance.

Instead, we can use the cpumask setup by OPP library that contains all
the cpus sharing OPP table using dev_pm_opp_get_sharing_cpus.
Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
Tested-by: NDietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
上级 2a76352a
...@@ -434,7 +434,7 @@ static int ve_spc_cpufreq_init(struct cpufreq_policy *policy) ...@@ -434,7 +434,7 @@ static int ve_spc_cpufreq_init(struct cpufreq_policy *policy)
if (cur_cluster < MAX_CLUSTERS) { if (cur_cluster < MAX_CLUSTERS) {
int cpu; int cpu;
cpumask_copy(policy->cpus, topology_core_cpumask(policy->cpu)); dev_pm_opp_get_sharing_cpus(cpu_dev, policy->cpus);
for_each_cpu(cpu, policy->cpus) for_each_cpu(cpu, policy->cpus)
per_cpu(physical_cluster, cpu) = cur_cluster; per_cpu(physical_cluster, cpu) = cur_cluster;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册