Lines Matching full:cpus
30 cpumask_var_t cpus; member
50 if (cpumask_test_cpu(cpu, priv->cpus)) in cpufreq_dt_find_data()
119 cpumask_copy(policy->cpus, priv->cpus); in cpufreq_init()
129 * Initialize OPP tables for all policy->cpus. They will be shared by in cpufreq_init()
130 * all CPUs which have marked their CPUs shared with OPP bindings. in cpufreq_init()
133 * before updating policy->cpus. Otherwise, we will end up creating in cpufreq_init()
134 * duplicate OPPs for policy->cpus. in cpufreq_init()
138 if (!dev_pm_opp_of_cpumask_add_table(policy->cpus)) in cpufreq_init()
180 dev_pm_opp_of_register_em(cpu_dev, policy->cpus); in cpufreq_init()
188 dev_pm_opp_of_cpumask_remove_table(policy->cpus); in cpufreq_init()
254 if (!alloc_cpumask_var(&priv->cpus, GFP_KERNEL)) in dt_cpufreq_early_init()
285 /* Find OPP sharing information so we can fill pri->cpus here */ in dt_cpufreq_early_init()
287 ret = dev_pm_opp_of_get_sharing_cpus(cpu_dev, priv->cpus); in dt_cpufreq_early_init()
293 * operating-points-v2 not supported, fallback to all CPUs share in dt_cpufreq_early_init()
295 * sharing CPUs. in dt_cpufreq_early_init()
297 if (dev_pm_opp_get_sharing_cpus(cpu_dev, priv->cpus)) { in dt_cpufreq_early_init()
298 cpumask_setall(priv->cpus); in dt_cpufreq_early_init()
304 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, priv->cpus); in dt_cpufreq_early_init()
320 free_cpumask_var(priv->cpus); in dt_cpufreq_early_init()
332 free_cpumask_var(priv->cpus); in dt_cpufreq_release()