summaryrefslogtreecommitdiff
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2014-07-21 08:24:04 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 19:59:55 -0700
commitf27b626521a14ebe9b9cfa692d59dcd72c1b4def (patch)
tree8107f1a705fbdda8234b9df9ccb2469507c4052e /kernel/sched/sched.h
parentad25ca2afbd5b3f483a8fd28386a45a4db2b007a (diff)
sched: remove sysctl control for HMP and power-aware task placement
There is no real need to control HMP and power-aware task placement at runtime after kernel has booted. Boot-time control should be sufficient. Not allowing for runtime (sysctl) support simplifies the code quite a bit. Also rename sysctl_sched_enable_hmp_task_placement to be shorter. Change-Id: I60cae51a173c6f73b79cbf90c50ddd41a27604aa Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org> Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org> [joonwoop@codeaurora.org: fixed minor conflict. p->nr_cpus_allowed == 1 has moved to core.c Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 351f69457a27..e2a22f661559 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1016,7 +1016,8 @@ static inline unsigned long capacity_scale_cpu_freq(int cpu)
#ifdef CONFIG_SCHED_HMP
-extern unsigned int sysctl_sched_enable_hmp_task_placement;
+extern unsigned int sched_enable_hmp;
+extern unsigned int sched_enable_power_aware;
int mostly_idle_cpu(int cpu);
extern void check_for_migration(struct rq *rq, struct task_struct *p);
@@ -1029,7 +1030,7 @@ extern unsigned int power_cost_at_freq(int cpu, unsigned int freq);
#else /* CONFIG_SCHED_HMP */
-#define sysctl_sched_enable_hmp_task_placement 0
+#define sched_enable_hmp 0
static inline void check_for_migration(struct rq *rq, struct task_struct *p) { }
static inline void pre_big_small_task_count_change(void) { }