From 3e7b06d9cf3dc7c542f57c59887f8632e70635d0 Mon Sep 17 00:00:00 2001 From: Syed Rameez Mustafa Date: Tue, 1 Jul 2014 16:00:04 -0700 Subject: 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 --- kernel/sched/debug.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel/sched/debug.c') 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); -- cgit v1.2.3