From 0a33ec2ea97b52f7cccbc5da42a243d6c9038c6f Mon Sep 17 00:00:00 2001 From: Srivatsa Vaddagiri Date: Fri, 16 Jan 2015 11:27:31 +0530 Subject: 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 [rameezmustafa@codeaurora.org: Port to msm-3.18] Signed-off-by: Syed Rameez Mustafa [joonwoop@codeaurora.org: fixed conflict in __update_load_avg().] Signed-off-by: Joonwoo Park --- kernel/sched/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/sched/debug.c') 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 -- cgit v1.2.3