Lines Matching full:policy

60 static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy,  in generic_powersave_bias_target()  argument
67 struct policy_dbs_info *policy_dbs = policy->governor_data; in generic_powersave_bias_target()
71 struct cpufreq_frequency_table *freq_table = policy->freq_table; in generic_powersave_bias_target()
79 index = cpufreq_frequency_table_target(policy, freq_next, relation); in generic_powersave_bias_target()
85 index = cpufreq_table_find_index_h(policy, freq_avg, in generic_powersave_bias_target()
88 index = cpufreq_table_find_index_l(policy, freq_avg, in generic_powersave_bias_target()
107 static void ondemand_powersave_bias_init(struct cpufreq_policy *policy) in ondemand_powersave_bias_init() argument
109 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy->governor_data); in ondemand_powersave_bias_init()
114 static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq) in dbs_freq_increase() argument
116 struct policy_dbs_info *policy_dbs = policy->governor_data; in dbs_freq_increase()
121 freq = od_ops.powersave_bias_target(policy, freq, in dbs_freq_increase()
123 else if (policy->cur == policy->max) in dbs_freq_increase()
126 __cpufreq_driver_target(policy, freq, od_tuners->powersave_bias ? in dbs_freq_increase()
135 static void od_update(struct cpufreq_policy *policy) in od_update() argument
137 struct policy_dbs_info *policy_dbs = policy->governor_data; in od_update()
141 unsigned int load = dbs_update(policy); in od_update()
148 if (policy->cur < policy->max) in od_update()
150 dbs_freq_increase(policy, policy->max); in od_update()
155 min_f = policy->cpuinfo.min_freq; in od_update()
156 max_f = policy->cpuinfo.max_freq; in od_update()
163 freq_next = od_ops.powersave_bias_target(policy, in od_update()
167 __cpufreq_driver_target(policy, freq_next, CPUFREQ_RELATION_CE); in od_update()
171 static unsigned int od_dbs_update(struct cpufreq_policy *policy) in od_dbs_update() argument
173 struct policy_dbs_info *policy_dbs = policy->governor_data; in od_dbs_update()
185 __cpufreq_driver_target(policy, dbs_info->freq_lo, in od_dbs_update()
190 od_update(policy); in od_dbs_update()
311 ondemand_powersave_bias_init(policy_dbs->policy); in powersave_bias_store()
390 static void od_start(struct cpufreq_policy *policy) in od_start() argument
392 struct od_policy_dbs_info *dbs_info = to_dbs_info(policy->governor_data); in od_start()
395 ondemand_powersave_bias_init(policy); in od_start()
428 struct cpufreq_policy *policy; in od_set_powersave_bias() local
436 policy = cpufreq_cpu_get_raw(cpu); in od_set_powersave_bias()
437 if (!policy || policy->governor != &CPU_FREQ_GOV_ONDEMAND) in od_set_powersave_bias()
440 policy_dbs = policy->governor_data; in od_set_powersave_bias()
444 cpumask_or(done, done, policy->cpus); in od_set_powersave_bias()