]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: vexpress-spc: Switch cpumask from topology core to OPP sharing
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 27 Nov 2019 16:04:26 +0000 (16:04 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 9 Dec 2019 11:52:50 +0000 (11:52 +0000)
commit22b23335c0d0b46ff9467c4243d07eac624abdde
tree943f7f0be761d5456c7ffd7b4910277170ab6b05
parentf25b1299a4741adab2a06f6a80fdcae589ce1f00
cpufreq: vexpress-spc: Switch cpumask from topology core to OPP sharing

Since commit da823b69aef4 ("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: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/cpufreq/vexpress-spc-cpufreq.c