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)
commit4a71ce4348bb61740d411822357061f8bf870f4c
tree36a84d540d82a046205dbceb9021347e3f5cb3bd
parent8e2ddb03643eb9d0bc4926946d7ce0d308eef0a5
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