]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: schedutil: enable fast switch earlier
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 15 Nov 2016 08:23:21 +0000 (13:53 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Nov 2016 22:21:08 +0000 (23:21 +0100)
commitd5bd77b88ce4b94f4d73d842a10d0a9ff496983b
tree36a84d540d82a046205dbceb9021347e3f5cb3bd
parent6d244d33824a5ca9be50ddbe1e79fffcd64b1acf
cpufreq: schedutil: enable fast switch earlier

The fast_switch_enabled flag will be used by both sugov_policy_alloc()
and sugov_policy_free() with a later patch.

Prepare for that by moving the calls to enable and disable it to the
beginning of sugov_init() and end of sugov_exit().

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