cpufreq: interactive: add timer slack to limit idle at speed > min
authorTodd Poynor <toddpoynor@google.com>
Wed, 19 Dec 2012 01:50:10 +0000 (17:50 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:48 +0000 (13:52 -0800)
commit959433fa2f30b74f4310375443a677e324607dc5
tree91928963b2869e8cd7e81d0c4ab34e6ebb60f0d3
parenta6d605140ef01ff7d3c5ce2ce3d78f5e806907b8
cpufreq: interactive: add timer slack to limit idle at speed > min

Always use deferrable timer for load sampling.

Set a non-deferrable timer to an additional slack time to allow prior to
waking up from idle to drop speed when not at minimum speed.  Slack value
-1 avoids wakeups to drop speed.  Default is 80ms.

Remove the governidle module param and its timer management in idle.  For
platforms on which holding speed above mimum in idle costs power, use the
new timer slack to select how long to wait before waking up to drop speed.

Change-Id: I270b3980667e2c70a68e5bff534124b4411dbad5
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/cpufreq/cpufreq_interactive.c