android_kernel_oneplus_msm8998/Documentation/cpu-freq
Junjie Wu 3eb23fd73c cpufreq: interactive: Use load prediction provided by scheduler
With modification in scheduler, governor now gets predicted
instantaneous demand waiting to run in addition to demand from
previous window for each CPU. Make use of this information since
prediction from scheduler could be more accurate than just looking at
past few windows.

Governor calculates two frequencies during each sampling period: one based
on demand in previous sampling period (f_prev), and the other based on
prediction provided by scheduler (f_pred). Max of both will be selected
as final frequency. Hispeed related logic, including both frequency
selection and delay is ignored when prediction is enabled. If only
f_pred but not f_prev picked policy->max, max_freq_hysteresis period is
not started/extended. This is to reduce power cost of mis-prediction
if it happens.

One use case prediction could dramatically help is when a heavy task
wakes up after sleeping for a long time. With prediction, governor
could ramp up to frequency the task needs much faster than before.

To enable prediction, echo 1 to enable_prediction file in
cpufreq interactive sysfs directory.

Change-Id: I27396785886e43ea01c9000c651c8bd142172273
Suggested-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
2016-03-23 21:25:29 -07:00
..
amd-powernow.txt
boost.txt Documentation: cpufreq / boost: Update BOOST documentation 2014-01-17 02:00:45 +01:00
core.txt cpufreq: remove redundant CPUFREQ_INCOMPATIBLE notifier event 2015-09-01 15:50:38 +02:00
cpu-drivers.txt cpufreq: add support for intermediate (stable) frequencies 2014-06-05 23:32:29 +02:00
cpufreq-nforce2.txt
cpufreq-stats.txt
governors.txt cpufreq: interactive: Use load prediction provided by scheduler 2016-03-23 21:25:29 -07:00
index.txt cpufreq: Make linux-pm@vger.kernel.org official mailing list 2014-05-01 01:15:32 +02:00
intel-pstate.txt Documentation, intel_pstate: Improve legacy mode internal governors description 2015-06-05 07:48:57 +09:00
pcc-cpufreq.txt
user-guide.txt Documentation: cpufreq: delete duplicate description of sysfs interface 'scaling_driver' 2015-05-05 23:23:25 +02:00