cpufreq: interactive: take idle notifications only when active
authorSam Leffler <sleffler@chromium.org>
Wed, 27 Jun 2012 17:12:04 +0000 (10:12 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:41 +0000 (13:52 -0800)
commit5722666d2d623b470cd2311a4e819925ce1cbc87
tree2d3f20fa9b4233cdc98b63ae488b601e4afc36a5
parentf0b83a6710a6c363e6bc1665ccd18f0bfb6f0dc1
cpufreq: interactive: take idle notifications only when active

Register an idle notifier only when the governor is active.  Also
short-circuit work of idle end if the governor is not enabled.

Signed-off-by: Sam Leffler <sleffler@chromium.org>
Change-Id: I4cae36dd2e7389540d337d74745ffbaa0131870f
drivers/cpufreq/cpufreq_interactive.c