Lines Matching refs:cpu_dev
60 struct device *cpu_dev; in armada_xp_pmsu_cpufreq_init() local
64 cpu_dev = get_cpu_device(cpu); in armada_xp_pmsu_cpufreq_init()
65 if (!cpu_dev) { in armada_xp_pmsu_cpufreq_init()
70 clk = clk_get(cpu_dev, NULL); in armada_xp_pmsu_cpufreq_init()
76 ret = dev_pm_opp_add(cpu_dev, clk_get_rate(clk), 0); in armada_xp_pmsu_cpufreq_init()
82 ret = dev_pm_opp_add(cpu_dev, clk_get_rate(clk) / 2, 0); in armada_xp_pmsu_cpufreq_init()
84 dev_pm_opp_remove(cpu_dev, clk_get_rate(clk)); in armada_xp_pmsu_cpufreq_init()
86 dev_err(cpu_dev, "Failed to register OPPs\n"); in armada_xp_pmsu_cpufreq_init()
90 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, in armada_xp_pmsu_cpufreq_init()
91 cpumask_of(cpu_dev->id)); in armada_xp_pmsu_cpufreq_init()
93 dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n", in armada_xp_pmsu_cpufreq_init()