Lines Matching refs:policy
55 static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
63 cpu = of_get_cpu_node(policy->cpu, NULL);
68 pr_debug("init cpufreq on CPU %d\n", policy->cpu);
73 if (!cbe_get_cpu_pmd_regs(policy->cpu) ||
74 !cbe_get_cpu_mic_tm_regs(policy->cpu)) {
101 policy->cpuinfo.transition_latency = 25000;
103 cur_pmode = cbe_cpufreq_get_pmode(policy->cpu);
106 policy->cur = cbe_freqs[cur_pmode].frequency;
109 cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu));
112 policy->freq_table = cbe_freqs;
113 cbe_cpufreq_pmi_policy_init(policy);
117 static int cbe_cpufreq_cpu_exit(struct cpufreq_policy *policy)
119 cbe_cpufreq_pmi_policy_exit(policy);
123 static int cbe_cpufreq_target(struct cpufreq_policy *policy,
128 policy->cpu,
132 return set_pmode(policy->cpu, cbe_pmode_new);