summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2014-06-12 12:21:52 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 19:59:34 -0700
commit2735664021d9b4b6089bd008a3ed8a0e04a5dd38 (patch)
tree11cf1155617e4a8afa0251fd98e1415e48f8f843 /include/linux
parent03d9294785842c12e0103dc6b5366244c64d0a89 (diff)
sched: Use historical load for freq governor input
Historical load maintained per task can be used to influence cpu frequency better. For example, when a heavy demand task wakes up after prolonged sleep, we could use the historical load information to alert cpufreq governor about the need to raise cpu frequency. This patch changes CPU busy statistics to be aggregation of historical task demand. Also task's historical load (as defined by sysctl_sched_window_stats_policy) is add to cpu's busy statistics (rq->curr_runnable_sum) whenever it executes on a cpu. Change-Id: I2b66136f138b147ba19083b9b044c4feb20d9b57 Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org> [rameezmustafa@codeaurora.org]: Port to msm-3.18] Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 2d2a94575eaa..f9e099e741e1 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1269,7 +1269,7 @@ struct ravg {
* sum_history (empty windows are ignored in sum_history).
*/
u64 mark_start;
- u32 sum, demand, prev_window;
+ u32 sum, demand, prev_window, partial_demand;
u32 sum_history[RAVG_HIST_SIZE];
};