summaryrefslogtreecommitdiff
path: root/kernel/sched/debug.c
diff options
context:
space:
mode:
authorSyed Rameez Mustafa <rameezmustafa@codeaurora.org>2014-07-01 16:00:04 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 19:59:49 -0700
commit3e7b06d9cf3dc7c542f57c59887f8632e70635d0 (patch)
tree076693bf06a26c656fdf9f4df61a7ec5545451b1 /kernel/sched/debug.c
parent320e5d6710d39fa497daabaf407b6fc6a6e52377 (diff)
sched: Add a per rq max_possible_capacity for use in power calculations
In the absence of a power driver providing real power values, the scheduler currently defaults to using capacity of a CPU as a measure of power. This, however, is not a good measure since the capacity of a CPU can change due to thermal conditions and/or other hardware restrictions. These frequency restrictions have no effect on the power efficiency of those CPUs. Introduce max possible capacity of a CPU to track an absolute measure of capacity which translates into a good absolute measure of power efficiency. Max possible capacity takes the max possible frequency of CPUs into account instead of max frequency. Change-Id: Ia970b853e43a90eb8cc6fd990b5c47fca7e50db8 Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Diffstat (limited to 'kernel/sched/debug.c')
-rw-r--r--kernel/sched/debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 441777901a98..1cfeada73daa 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -312,6 +312,7 @@ do { \
#if defined(CONFIG_SCHED_HMP) || defined(CONFIG_SCHED_FREQ_INPUT)
P(load_scale_factor);
P(capacity);
+ P(max_possible_capacity);
P(efficiency);
P(cur_freq);
P(max_freq);