===================================================================
@@ -251,7 +251,7 @@ static bool sched_is_eas_possible(const
return false;
}
- /* Do not attempt EAS if schedutil is not being used. */
+ /* Do not attempt EAS with a cpufreq governor other than schedutil. */
for_each_cpu(i, cpu_mask) {
policy = cpufreq_cpu_get(i);
if (!policy) {
@@ -263,9 +263,9 @@ static bool sched_is_eas_possible(const
}
gov = policy->governor;
cpufreq_cpu_put(policy);
- if (gov != &schedutil_gov) {
+ if (gov && gov != &schedutil_gov) {
if (sched_debug()) {
- pr_info("rd %*pbl: Checking EAS, schedutil is mandatory\n",
+ pr_info("rd %*pbl: Checking EAS, cpufreq governor is not schedutil\n",
cpumask_pr_args(cpu_mask));
}
return false;