Lines Matching full:cpus
30 cpumask_var_t cpus; member
50 if (cpumask_test_cpu(cpu, priv->cpus)) in cpufreq_dt_find_data()
115 cpumask_copy(policy->cpus, priv->cpus); in cpufreq_init()
196 if (!zalloc_cpumask_var(&priv->cpus, GFP_KERNEL)) in dt_cpufreq_early_init()
199 cpumask_set_cpu(cpu, priv->cpus); in dt_cpufreq_early_init()
217 ret = dev_pm_opp_of_get_sharing_cpus(cpu_dev, priv->cpus); in dt_cpufreq_early_init()
223 * operating-points-v2 not supported, fallback to all CPUs share in dt_cpufreq_early_init()
225 * sharing CPUs. in dt_cpufreq_early_init()
227 if (dev_pm_opp_get_sharing_cpus(cpu_dev, priv->cpus)) in dt_cpufreq_early_init()
232 * Initialize OPP tables for all priv->cpus. They will be shared by in dt_cpufreq_early_init()
233 * all CPUs which have marked their CPUs shared with OPP bindings. in dt_cpufreq_early_init()
236 * before updating priv->cpus. Otherwise, we will end up creating in dt_cpufreq_early_init()
237 * duplicate OPPs for the CPUs. in dt_cpufreq_early_init()
242 ret = dev_pm_opp_of_cpumask_add_table(priv->cpus); in dt_cpufreq_early_init()
261 cpumask_setall(priv->cpus); in dt_cpufreq_early_init()
262 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, priv->cpus); in dt_cpufreq_early_init()
279 dev_pm_opp_of_cpumask_remove_table(priv->cpus); in dt_cpufreq_early_init()
282 free_cpumask_var(priv->cpus); in dt_cpufreq_early_init()
293 dev_pm_opp_of_cpumask_remove_table(priv->cpus); in dt_cpufreq_release()
295 free_cpumask_var(priv->cpus); in dt_cpufreq_release()