Home
last modified time | relevance | path

Searched refs:cpufreq_policy (Results 1 – 4 of 4) sorted by relevance

/tools/power/cpupower/lib/
Dcpufreq.h11 struct cpufreq_policy { struct
100 struct cpufreq_policy *cpufreq_get_policy(unsigned int cpu);
102 void cpufreq_put_policy(struct cpufreq_policy *policy);
177 int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
Dcpufreq.c227 struct cpufreq_policy *cpufreq_get_policy(unsigned int cpu) in cpufreq_get_policy()
229 struct cpufreq_policy *policy; in cpufreq_get_policy()
231 policy = malloc(sizeof(struct cpufreq_policy)); in cpufreq_get_policy()
251 void cpufreq_put_policy(struct cpufreq_policy *policy) in cpufreq_put_policy()
531 int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy) in cpufreq_set_policy()
616 struct cpufreq_policy *pol = cpufreq_get_policy(cpu); in cpufreq_set_frequency()
/tools/power/cpupower/utils/
Dcpufreq-set.c140 static int do_new_policy(unsigned int cpu, struct cpufreq_policy *new_pol) in do_new_policy()
142 struct cpufreq_policy *cur_pol = cpufreq_get_policy(cpu); in do_new_policy()
167 static int do_one_cpu(unsigned int cpu, struct cpufreq_policy *new_pol, in do_one_cpu()
202 struct cpufreq_policy new_pol = { in cmd_freq_set()
Dcpufreq-info.c59 struct cpufreq_policy *policy; in proc_cpufreq_output()
348 struct cpufreq_policy *policy = cpufreq_get_policy(cpu); in get_policy()