Lines Matching refs:policy
192 struct cpufreq_policy *policy; in get_cpufreq_para() local
201 policy = per_cpu(cpufreq_cpu_policy, op->cpuid); in get_cpufreq_para()
204 !policy || !policy->governor ) in get_cpufreq_para()
210 if ( (op->u.get_para.cpu_num != cpumask_weight(policy->cpus)) || in get_cpufreq_para()
214 op->u.get_para.cpu_num = cpumask_weight(policy->cpus); in get_cpufreq_para()
222 for_each_cpu(cpu, policy->cpus) in get_cpufreq_para()
258 cpufreq_driver->get ? cpufreq_driver->get(op->cpuid) : policy->cur; in get_cpufreq_para()
259 op->u.get_para.cpuinfo_max_freq = policy->cpuinfo.max_freq; in get_cpufreq_para()
260 op->u.get_para.cpuinfo_min_freq = policy->cpuinfo.min_freq; in get_cpufreq_para()
261 op->u.get_para.scaling_cur_freq = policy->cur; in get_cpufreq_para()
262 op->u.get_para.scaling_max_freq = policy->max; in get_cpufreq_para()
263 op->u.get_para.scaling_min_freq = policy->min; in get_cpufreq_para()
271 if ( policy->governor->name[0] ) in get_cpufreq_para()
273 policy->governor->name, CPUFREQ_NAME_LEN); in get_cpufreq_para()
281 op->u.get_para.u.userspace.scaling_setspeed = policy->cur; in get_cpufreq_para()
318 struct cpufreq_policy *policy; in set_cpufreq_para() local
320 policy = per_cpu(cpufreq_cpu_policy, op->cpuid); in set_cpufreq_para()
322 if ( !policy || !policy->governor ) in set_cpufreq_para()
331 memcpy(&new_policy, policy, sizeof(struct cpufreq_policy)); in set_cpufreq_para()
333 ret = __cpufreq_set_policy(policy, &new_policy); in set_cpufreq_para()
342 memcpy(&new_policy, policy, sizeof(struct cpufreq_policy)); in set_cpufreq_para()
344 ret = __cpufreq_set_policy(policy, &new_policy); in set_cpufreq_para()
353 if ( !strnicmp(policy->governor->name, in set_cpufreq_para()
366 if ( !strnicmp(policy->governor->name, in set_cpufreq_para()
379 if ( !strnicmp(policy->governor->name, in set_cpufreq_para()