Lines Matching refs:policy
54 static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) in cbe_cpufreq_cpu_init() argument
62 cpu = of_get_cpu_node(policy->cpu, NULL); in cbe_cpufreq_cpu_init()
67 pr_debug("init cpufreq on CPU %d\n", policy->cpu); in cbe_cpufreq_cpu_init()
72 if (!cbe_get_cpu_pmd_regs(policy->cpu) || in cbe_cpufreq_cpu_init()
73 !cbe_get_cpu_mic_tm_regs(policy->cpu)) { in cbe_cpufreq_cpu_init()
100 policy->cpuinfo.transition_latency = 25000; in cbe_cpufreq_cpu_init()
102 cur_pmode = cbe_cpufreq_get_pmode(policy->cpu); in cbe_cpufreq_cpu_init()
105 policy->cur = cbe_freqs[cur_pmode].frequency; in cbe_cpufreq_cpu_init()
108 cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu)); in cbe_cpufreq_cpu_init()
111 policy->freq_table = cbe_freqs; in cbe_cpufreq_cpu_init()
112 cbe_cpufreq_pmi_policy_init(policy); in cbe_cpufreq_cpu_init()
116 static void cbe_cpufreq_cpu_exit(struct cpufreq_policy *policy) in cbe_cpufreq_cpu_exit() argument
118 cbe_cpufreq_pmi_policy_exit(policy); in cbe_cpufreq_cpu_exit()
121 static int cbe_cpufreq_target(struct cpufreq_policy *policy, in cbe_cpufreq_target() argument
126 policy->cpu, in cbe_cpufreq_target()
130 return set_pmode(policy->cpu, cbe_pmode_new); in cbe_cpufreq_target()