summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2014-11-21 18:25:11 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:01:03 -0700
commit8e3aa6790ca4ff4744e30720e97c458375a35237 (patch)
treeb850a59db6aaa036957f304fb6ee6edae1c3a8c4 /include/linux
parent2365b0cbd64fe7a00ec2cfd3b7d8a20df640e095 (diff)
sched: Packing support until a frequency threshold
Add another dimension for task packing based on frequency. This patch adds a per-cpu tunable, rq->mostly_idle_freq, which when set will result in tasks being packed on a single cpu in cluster as long as cluster frequency is less than set threshold. Change-Id: I318e9af6c8788ddf5dfcda407d621449ea5343c0 Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 701611dad0fd..fd4d79416cdc 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2335,6 +2335,9 @@ extern int sched_set_cpu_mostly_idle_load(int cpu, int mostly_idle_pct);
extern int sched_get_cpu_mostly_idle_load(int cpu);
extern int sched_set_cpu_mostly_idle_nr_run(int cpu, int nr_run);
extern int sched_get_cpu_mostly_idle_nr_run(int cpu);
+extern int
+sched_set_cpu_mostly_idle_freq(int cpu, unsigned int mostly_idle_freq);
+extern unsigned int sched_get_cpu_mostly_idle_freq(int cpu);
#else
static inline int sched_set_boost(int enable)