Lines Matching defs:policy
254 * speedstep_target - set a new CPUFreq policy
255 * @policy: new policy
260 * Sets a new CPUFreq policy.
262 static int speedstep_target(struct cpufreq_policy *policy,
270 if (cpufreq_frequency_table_target(policy, &speedstep_freqs[0],
274 policy_cpu = cpumask_any_and(policy->cpus, cpu_online_mask);
277 freqs.cpu = policy->cpu;
285 for_each_cpu(i, policy->cpus) {
293 for_each_cpu(i, policy->cpus) {
303 * speedstep_verify - verifies a new CPUFreq policy
304 * @policy: new policy
309 static int speedstep_verify(struct cpufreq_policy *policy)
311 return cpufreq_frequency_table_verify(policy, &speedstep_freqs[0]);
315 struct cpufreq_policy *policy;
327 &get_freqs->policy->cpuinfo.transition_latency,
331 static int speedstep_cpu_init(struct cpufreq_policy *policy)
339 cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu));
341 policy_cpu = cpumask_any_and(policy->cpus, cpu_online_mask);
344 gf.policy = policy;
359 /* cpuinfo and default policy values */
360 policy->cur = speed;
362 result = cpufreq_frequency_table_cpuinfo(policy, speedstep_freqs);
366 cpufreq_frequency_table_get_attr(speedstep_freqs, policy->cpu);
372 static int speedstep_cpu_exit(struct cpufreq_policy *policy)
374 cpufreq_frequency_table_put_attr(policy->cpu);