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)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:14 +0000 (14:16 -0700)
commit9e746fb2910a7febb811427c3a1c9fa89dfef414
tree42daa14733de102c92c1bc589ee9675a36fddde3
parent1d1b87282bc5b7d155fc3b14d612c28317aa98a5
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