@@ -545,7 +545,7 @@ unsigned int cpufreq_driver_resolve_freq(struct cpufreq_policy *policy,
unsigned int idx;
idx = cpufreq_frequency_table_target(policy, target_freq,
- CPUFREQ_RELATION_L);
+ CPUFREQ_RELATION_E);
policy->cached_resolved_idx = idx;
return policy->freq_table[idx].frequency;
}
@@ -134,7 +134,7 @@ static unsigned int cs_dbs_update(struct cpufreq_policy *policy)
else
requested_freq = policy->min;
- __cpufreq_driver_target(policy, requested_freq, CPUFREQ_RELATION_L);
+ __cpufreq_driver_target(policy, requested_freq, CPUFREQ_RELATION_E);
dbs_info->requested_freq = requested_freq;
}
@@ -123,7 +123,7 @@ static void dbs_freq_increase(struct cpufreq_policy *policy, unsigned int freq)
return;
__cpufreq_driver_target(policy, freq, od_tuners->powersave_bias ?
- CPUFREQ_RELATION_L : CPUFREQ_RELATION_H);
+ CPUFREQ_RELATION_E : CPUFREQ_RELATION_H);
}
/*
@@ -161,7 +161,7 @@ static void od_update(struct cpufreq_policy *policy)
if (od_tuners->powersave_bias)
freq_next = od_ops.powersave_bias_target(policy,
freq_next,
- CPUFREQ_RELATION_L);
+ CPUFREQ_RELATION_E);
__cpufreq_driver_target(policy, freq_next, CPUFREQ_RELATION_C);
}
@@ -638,7 +638,7 @@ static inline void cpufreq_policy_apply_limits(struct cpufreq_policy *policy)
if (policy->max < policy->cur)
__cpufreq_driver_target(policy, policy->max, CPUFREQ_RELATION_H);
else if (policy->min > policy->cur)
- __cpufreq_driver_target(policy, policy->min, CPUFREQ_RELATION_L);
+ __cpufreq_driver_target(policy, policy->min, CPUFREQ_RELATION_E);
}
/* Governor attribute set */
@@ -481,7 +481,7 @@ static void sugov_work(struct kthread_work *work)
raw_spin_unlock_irqrestore(&sg_policy->update_lock, flags);
mutex_lock(&sg_policy->work_lock);
- __cpufreq_driver_target(sg_policy->policy, freq, CPUFREQ_RELATION_L);
+ __cpufreq_driver_target(sg_policy->policy, freq, CPUFREQ_RELATION_E);
mutex_unlock(&sg_policy->work_lock);
}
Avoid inefficient frequencies with the freq-table relation CPUFREQ_RELATION_E instead of CPUFREQ_RELATION_L in governors where it is possible. Are left aside: - userspace: there is no reason to not honour user requests. - powersave: selects the lowest frequency possible. Caveat in ondemand: the governor only using CPUFREQ_RELATION_L when powersavebias is set, the inefficient frequencies would be skipped only in a such configuration. Signed-off-by: Vincent Donnefort <vincent.donnefort@arm.com>