cpufreq: schedutil: Set dynamic_switching to true
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Jul 2017 10:12:47 +0000 (15:42 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Jul 2017 22:15:45 +0000 (00:15 +0200)
Set dynamic_switching to 'true' to disallow use of schedutil governor
for platforms with transition_latency set to CPUFREQ_ETERNAL, as they
may not want to do automatic dynamic frequency switching.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/sched/cpufreq_schedutil.c

index 89c4dd9..45fcf21 100644 (file)
@@ -646,6 +646,7 @@ static void sugov_limits(struct cpufreq_policy *policy)
 static struct cpufreq_governor schedutil_gov = {
        .name = "schedutil",
        .owner = THIS_MODULE,
+       .dynamic_switching = true,
        .init = sugov_init,
        .exit = sugov_exit,
        .start = sugov_start,