Lines Matching refs:cpu_dev
33 struct device *cpu_dev; member
44 struct device *cpu_dev; in armada_8k_get_sharing_cpus() local
47 cpu_dev = get_cpu_device(cpu); in armada_8k_get_sharing_cpus()
48 if (!cpu_dev) { in armada_8k_get_sharing_cpus()
53 clk = clk_get(cpu_dev, 0); in armada_8k_get_sharing_cpus()
65 static int __init armada_8k_add_opp(struct clk *clk, struct device *cpu_dev, in armada_8k_add_opp() argument
76 dev_err(cpu_dev, "Failed to get clock rate for this CPU\n"); in armada_8k_add_opp()
80 freq_tables[opps_index].cpu_dev = cpu_dev; in armada_8k_add_opp()
85 ret = dev_pm_opp_add(cpu_dev, freq, 0); in armada_8k_add_opp()
103 if (!freq_tables[opps_index].cpu_dev) in armada_8k_cpufreq_free_table()
115 dev_pm_opp_remove(freq_tables[opps_index].cpu_dev, in armada_8k_cpufreq_free_table()
150 struct device *cpu_dev; in armada_8k_cpufreq_init() local
153 cpu_dev = get_cpu_device(cpu); in armada_8k_cpufreq_init()
155 if (!cpu_dev) { in armada_8k_cpufreq_init()
160 clk = clk_get(cpu_dev, 0); in armada_8k_cpufreq_init()
168 ret = armada_8k_add_opp(clk, cpu_dev, freq_tables, opps_index); in armada_8k_cpufreq_init()
177 dev_pm_opp_set_sharing_cpus(cpu_dev, &shared_cpus); in armada_8k_cpufreq_init()