summaryrefslogtreecommitdiff
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorOlav Haugan <ohaugan@codeaurora.org>2015-08-10 16:41:44 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:02:27 -0700
commit03a683a55c450e26f1ebde7400f64a4b7ecd68c2 (patch)
tree89d641bf72662652aff71607161baac88b731110 /include/linux/sched.h
parent4996dafe6875f2804d525e6ac74162e3efc4cda3 (diff)
sched: Add tunables for static cpu and cluster cost
Add per-cpu tunable to set the extra cost to use a CPU that is idle. Add the same for a cluster. Change-Id: I4aa53f3c42c963df7abc7480980f747f0413d389 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> [joonwoop@codeaurora.org: omitted changes for qhmp*.[c,h] stripped out CONFIG_SCHED_QHMP in drivers/base/cpu.c and include/linux/sched.h] Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 9e4171146f39..77d3b4c106cd 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2352,6 +2352,10 @@ extern u32 sched_get_wake_up_idle(struct task_struct *p);
extern int sched_set_boost(int enable);
extern int sched_set_init_task_load(struct task_struct *p, int init_load_pct);
extern u32 sched_get_init_task_load(struct task_struct *p);
+extern int sched_set_static_cpu_pwr_cost(int cpu, unsigned int cost);
+extern unsigned int sched_get_static_cpu_pwr_cost(int cpu);
+extern int sched_set_static_cluster_pwr_cost(int cpu, unsigned int cost);
+extern unsigned int sched_get_static_cluster_pwr_cost(int cpu);
#else
static inline int sched_set_boost(int enable)