Lines Matching refs:cpu
33 static unsigned int sh_cpufreq_get(unsigned int cpu) in sh_cpufreq_get() argument
35 return (clk_get_rate(&per_cpu(sh_cpuclk, cpu)) + 500) / 1000; in sh_cpufreq_get()
45 unsigned int cpu = policy->cpu; in sh_cpufreq_target() local
46 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_target()
53 set_cpus_allowed_ptr(current, cpumask_of(cpu)); in sh_cpufreq_target()
55 BUG_ON(smp_processor_id() != cpu); in sh_cpufreq_target()
57 dev = get_cpu_device(cpu); in sh_cpufreq_target()
67 freqs.old = sh_cpufreq_get(cpu); in sh_cpufreq_target()
83 struct clk *cpuclk = &per_cpu(sh_cpuclk, policy->cpu); in sh_cpufreq_verify()
101 unsigned int cpu = policy->cpu; in sh_cpufreq_cpu_init() local
102 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_cpu_init()
106 dev = get_cpu_device(cpu); in sh_cpufreq_cpu_init()
143 unsigned int cpu = policy->cpu; in sh_cpufreq_cpu_exit() local
144 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_cpu_exit()