cpufreq: interactive: change speed according to current speed and target load
authorTodd Poynor <toddpoynor@google.com>
Thu, 29 Nov 2012 01:58:17 +0000 (17:58 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:46 +0000 (13:52 -0800)
commit4727e1aa45b97397fdc32d805f2b40906eddf55d
tree55f568c9a9e010e66f3af10ef9dd2c3ca60fae5a
parentdc202c38d36161b1b8fe6f1cd49b690ee6d08dcc
cpufreq: interactive: change speed according to current speed and target load

Add a target_load attribute that specifies how aggressively the governor is
to adjust speed to meet the observed load.  New target speed is calculated
as the current actual speed (may be higher than target speed on SMP) times
the CPU load (as a fraction) divided by target load (fraction).

cpufreq_frequency_table_target() call use CPUFREQ_RELATION_L to set
the next higher speed rather than next lower speed.

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