OSDN Git Service

UPSTREAM: cpufreq: schedutil: enable fast switch earlier
authorChris Redpath <chris.redpath@arm.com>
Thu, 25 May 2017 14:06:27 +0000 (15:06 +0100)
committerAndres Oportus <andresoportus@google.com>
Tue, 18 Jul 2017 18:13:58 +0000 (18:13 +0000)
commitceed1eb2b409d74ca694cbf4cdee536476a280c8
tree49e050112227ef6a41baf349f6840607a963fe17
parentbab9c2fbe48e9ebe6af7fa19ade1bf558dcc2eac
UPSTREAM: 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>
(cherry picked from commit 4a71ce4348bb61740d411822357061f8bf870f4c)
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Change-Id: Ia174f423ca02d59360657ac2e77a5098ce5cf99c
kernel/sched/cpufreq_schedutil.c