diff options
| author | Srivatsa Vaddagiri <vatsa@codeaurora.org> | 2015-04-20 12:35:48 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:25:10 -0700 |
| commit | cb1bb6a8f4a881b2c6c80160a94975dd93175558 (patch) | |
| tree | 663ceabac7e860cfa7c15bae3dc7994c9c275da0 /kernel/sched/debug.c | |
| parent | f36ae7405af944bb43f807c3e59bcddf47fd41e4 (diff) | |
sched: Introduce the concept CPU clusters in the scheduler
A cluster is set of CPUs sharing some power controls and an L2 cache.
This patch buids a list of clusters at bootup which are sorted by
their max_power_cost. Many cluster-shared attributes like cur_freq,
max_freq etc are needlessly maintained in per-cpu 'struct rq' currently.
Consolidate them in a cluster structure.
Change-Id: I0567672ad5fb67d211d9336181ceb53b9f6023af
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
[joonwoop@codeaurora.org: fixed minor conflict in
arch/arm64/kernel/topology.c. fixed conflict due to ommited changes for
CONFIG_SCHED_QHMP.]
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Diffstat (limited to 'kernel/sched/debug.c')
| -rw-r--r-- | kernel/sched/debug.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index b2bb6caa6a5b..469640a0a626 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -318,14 +318,14 @@ do { \ P(cpu_capacity); #endif #ifdef CONFIG_SCHED_HMP - P(load_scale_factor); - P(capacity); - P(max_possible_capacity); - P(efficiency); - P(cur_freq); - P(max_freq); P(static_cpu_pwr_cost); - P(static_cluster_pwr_cost); + P(cluster->static_cluster_pwr_cost); + P(cluster->load_scale_factor); + P(cluster->capacity); + P(cluster->max_possible_capacity); + P(cluster->efficiency); + P(cluster->cur_freq); + P(cluster->max_freq); #endif #ifdef CONFIG_SCHED_HMP P(hmp_stats.nr_big_tasks); |
