diff options
author | Olav Haugan <ohaugan@codeaurora.org> | 2015-08-29 11:03:37 -0700 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:02:26 -0700 |
commit | 4996dafe6875f2804d525e6ac74162e3efc4cda3 (patch) | |
tree | 65627bed9bcf9ae4ab1ccb66a2d32067aab12989 /kernel/sched/sched.h | |
parent | b4627e0104c72dd25048fdcd8dd38fad78ad9782 (diff) |
sched/core: Add API to set cluster d-state
Add new API to the scheduler to allow low power mode driver to inform
the scheduler about the d-state of a cluster. This can be leveraged by
the scheduler to make an informed decision about the cost of placing a task
on a cluster.
Change-Id: If0fe0fdba7acad1c2eb73654ebccfdb421225e62
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
[joonwoop@codeaurora.org: omitted fixes for qhmp_core.c and qhmp_core.h]
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 2545fe83e8cd..4380cfacf1da 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -664,6 +664,7 @@ struct rq { u64 idle_stamp; u64 avg_idle; int cstate, wakeup_latency, wakeup_energy; + int dstate, dstate_wakeup_latency, dstate_wakeup_energy; /* This is used to determine avg_idle's max value */ u64 max_idle_balance_cost; |