• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/x86/kernel/cpu/cpufreq/

Lines Matching refs:policy

32  * longrun_get_policy - get the current LongRun policy
33 * @policy: struct cpufreq_policy where current policy is written into
35 * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS
38 static void __init longrun_get_policy(struct cpufreq_policy *policy)
45 policy->policy = CPUFREQ_POLICY_PERFORMANCE;
47 policy->policy = CPUFREQ_POLICY_POWERSAVE;
56 policy->min = policy->max = longrun_high_freq;
58 policy->min = longrun_low_freq + msr_lo *
60 policy->max = longrun_low_freq + msr_hi *
63 policy->cpu = 0;
68 * longrun_set_policy - sets a new CPUFreq policy
69 * @policy: new policy
71 * Sets a new CPUFreq policy on LongRun-capable processors. This function
74 static int longrun_set_policy(struct cpufreq_policy *policy)
79 if (!policy)
86 pctg_lo = (policy->min - longrun_low_freq) /
88 pctg_hi = (policy->max - longrun_low_freq) /
100 switch (policy->policy) {
122 * longrun_verify_poliy - verifies a new CPUFreq policy
123 * @policy: the policy to verify
125 * Validates a new CPUFreq policy. This function has to be called with
128 static int longrun_verify_policy(struct cpufreq_policy *policy)
130 if (!policy)
133 policy->cpu = 0;
134 cpufreq_verify_within_limits(policy,
135 policy->cpuinfo.min_freq,
136 policy->cpuinfo.max_freq);
138 if ((policy->policy != CPUFREQ_POLICY_POWERSAVE) &&
139 (policy->policy != CPUFREQ_POLICY_PERFORMANCE))
261 static int __cpuinit longrun_cpu_init(struct cpufreq_policy *policy)
266 if (policy->cpu != 0)
274 /* cpuinfo and default policy values */
275 policy->cpuinfo.min_freq = longrun_low_freq;
276 policy->cpuinfo.max_freq = longrun_high_freq;
277 policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
278 longrun_get_policy(policy);