Lines Matching refs:policy
35 static void longrun_get_policy(struct cpufreq_policy *policy) in longrun_get_policy() argument
42 policy->policy = CPUFREQ_POLICY_PERFORMANCE; in longrun_get_policy()
44 policy->policy = CPUFREQ_POLICY_POWERSAVE; in longrun_get_policy()
53 policy->min = policy->max = longrun_high_freq; in longrun_get_policy()
55 policy->min = longrun_low_freq + msr_lo * in longrun_get_policy()
57 policy->max = longrun_low_freq + msr_hi * in longrun_get_policy()
60 policy->cpu = 0; in longrun_get_policy()
71 static int longrun_set_policy(struct cpufreq_policy *policy) in longrun_set_policy() argument
76 if (!policy) in longrun_set_policy()
83 pctg_lo = (policy->min - longrun_low_freq) / in longrun_set_policy()
85 pctg_hi = (policy->max - longrun_low_freq) / in longrun_set_policy()
97 switch (policy->policy) { in longrun_set_policy()
125 static int longrun_verify_policy(struct cpufreq_policy_data *policy) in longrun_verify_policy() argument
127 if (!policy) in longrun_verify_policy()
130 policy->cpu = 0; in longrun_verify_policy()
131 cpufreq_verify_within_cpu_limits(policy); in longrun_verify_policy()
252 static int longrun_cpu_init(struct cpufreq_policy *policy) in longrun_cpu_init() argument
257 if (policy->cpu != 0) in longrun_cpu_init()
266 policy->cpuinfo.min_freq = longrun_low_freq; in longrun_cpu_init()
267 policy->cpuinfo.max_freq = longrun_high_freq; in longrun_cpu_init()
268 longrun_get_policy(policy); in longrun_cpu_init()