Lines Matching defs:cpu
18 #include <linux/cpu.h>
110 static int allocate_resources(int cpu, struct device **cdev,
117 char *reg_cpu0 = "cpu0", *reg_cpu = "cpu", *reg;
119 cpu_dev = get_cpu_device(cpu);
121 pr_err("failed to get cpu%d device\n", cpu);
126 if (!cpu)
135 * If cpu's regulator supply node is present, but regulator is
139 dev_dbg(cpu_dev, "cpu%d regulator not ready, retry\n",
140 cpu);
144 /* Try with "cpu-supply" */
150 dev_dbg(cpu_dev, "no regulator for cpu%d: %ld\n",
151 cpu, PTR_ERR(cpu_reg));
163 * If cpu's clk node is present, but clock is not yet
167 dev_dbg(cpu_dev, "cpu%d clock not ready, retry\n", cpu);
169 dev_err(cpu_dev, "failed to get cpu%d clock: %d\n", cpu,
194 ret = allocate_resources(policy->cpu, &cpu_dev, &cpu_reg, &cpu_clk);
202 dev_err(cpu_dev, "failed to find cpu%d node\n", policy->cpu);