Lines Matching refs:cpu
10 #include <linux/cpu.h>
46 static struct private_data *cpufreq_dt_find_data(int cpu)
52 if (cpumask_test_cpu(cpu, priv->cpus)) {
80 int cpu = dev->id;
90 if (!cpu) {
98 pp = of_find_property(np, "cpu-supply", NULL);
100 name = "cpu";
104 dev_dbg(dev, "no regulator for cpu%d\n", cpu);
118 priv = cpufreq_dt_find_data(policy->cpu);
120 pr_err("failed to find data for cpu%d\n", policy->cpu);
200 static int dt_cpufreq_early_init(struct device *dev, int cpu)
209 if (cpufreq_dt_find_data(cpu)) {
213 cpu_dev = get_cpu_device(cpu);
227 cpumask_set_cpu(cpu, priv->cpus);
342 int ret, cpu;
345 for_each_possible_cpu(cpu)
347 ret = dt_cpufreq_early_init(&pdev->dev, cpu);