Lines Matching refs:policy
253 * speedstep_target - set a new CPUFreq policy
254 * @policy: new policy
258 * Sets a new CPUFreq policy.
260 static int speedstep_target (struct cpufreq_policy *policy,
269 if (cpufreq_frequency_table_target(policy, &speedstep_freqs[0], target_freq, relation, &newstate))
272 freqs.old = _speedstep_get(policy->cpus);
274 freqs.cpu = policy->cpu;
284 for_each_cpu_mask(i, policy->cpus) {
290 set_cpus_allowed(current, policy->cpus);
297 for_each_cpu_mask(i, policy->cpus) {
307 * speedstep_verify - verifies a new CPUFreq policy
308 * @policy: new policy
313 static int speedstep_verify (struct cpufreq_policy *policy)
315 return cpufreq_frequency_table_verify(policy, &speedstep_freqs[0]);
319 static int speedstep_cpu_init(struct cpufreq_policy *policy)
327 policy->cpus = cpu_sibling_map[policy->cpu];
331 set_cpus_allowed(current, policy->cpus);
337 &policy->cpuinfo.transition_latency,
344 speed = _speedstep_get(policy->cpus);
352 /* cpuinfo and default policy values */
353 policy->governor = CPUFREQ_DEFAULT_GOVERNOR;
354 policy->cur = speed;
356 result = cpufreq_frequency_table_cpuinfo(policy, speedstep_freqs);
360 cpufreq_frequency_table_get_attr(speedstep_freqs, policy->cpu);
366 static int speedstep_cpu_exit(struct cpufreq_policy *policy)
368 cpufreq_frequency_table_put_attr(policy->cpu);