summaryrefslogtreecommitdiff
path: root/kernel/sched/debug.c
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2015-01-16 11:27:31 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:01:34 -0700
commit0a33ec2ea97b52f7cccbc5da42a243d6c9038c6f (patch)
tree2e1658af2cb66f497c23d6829629f545cc688140 /kernel/sched/debug.c
parent207d78dd263114ccf6e04581f43e4dc99e7b068d (diff)
sched: Consolidate hmp stats into their own struct
Key hmp stats (nr_big_tasks, nr_small_tasks and cumulative_runnable_average) are currently maintained per-cpu in 'struct rq'. Merge those stats in their own structure (struct hmp_sched_stats) and modify impacted functions to deal with the newly introduced structure. This cleanup is required for a subsequent patch which fixes various issues with use of CFS_BANDWIDTH feature in HMP scheduler. Change-Id: Ieffc10a3b82a102f561331bc385d042c15a33998 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> [joonwoop@codeaurora.org: fixed conflict in __update_load_avg().] Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'kernel/sched/debug.c')
-rw-r--r--kernel/sched/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 752a0de12871..f0d1e0b40195 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -320,8 +320,8 @@ do { \
P(max_freq);
#endif
#ifdef CONFIG_SCHED_HMP
- P(nr_big_tasks);
- P(nr_small_tasks);
+ P(hmp_stats.nr_big_tasks);
+ P(hmp_stats.nr_small_tasks);
#endif
#undef P
#undef PN