Lines Matching refs:cpu_dev
40 struct device *cpu_dev;
51 struct device *cpu_dev;
54 cpu_dev = get_cpu_device(cpu);
55 if (!cpu_dev) {
60 clk = clk_get(cpu_dev, NULL);
72 static int __init armada_8k_add_opp(struct clk *clk, struct device *cpu_dev,
83 dev_err(cpu_dev, "Failed to get clock rate for this CPU\n");
87 freq_tables[opps_index].cpu_dev = cpu_dev;
92 ret = dev_pm_opp_add(cpu_dev, freq, 0);
109 /* If cpu_dev is NULL then we reached the end of the array */
110 if (!freq_tables[opps_index].cpu_dev)
122 dev_pm_opp_remove(freq_tables[opps_index].cpu_dev,
157 struct device *cpu_dev;
160 cpu_dev = get_cpu_device(cpu);
162 if (!cpu_dev) {
167 clk = clk_get(cpu_dev, NULL);
175 ret = armada_8k_add_opp(clk, cpu_dev, freq_tables, opps_index);
184 dev_pm_opp_set_sharing_cpus(cpu_dev, &shared_cpus);