From ad25ca2afbd5b3f483a8fd28386a45a4db2b007a Mon Sep 17 00:00:00 2001 From: Srivatsa Vaddagiri Date: Mon, 21 Jul 2014 02:05:24 -0700 Subject: sched: support legacy mode better It should be possible to bypass all HMP scheduler changes at runtime by setting sysctl_sched_enable_hmp_task_placement and sysctl_sched_enable_power_aware to 0. Fix various code paths to honor this requirement. Change-Id: I74254e68582b3f9f1b84661baf7dae14f981c025 Signed-off-by: Srivatsa Vaddagiri Signed-off-by: Syed Rameez Mustafa [joonwoop@codeaurora.org: fixed conflict in rt.c, p->nr_cpus_allowed == 1 is now moved in core.c] Signed-off-by: Joonwoo Park --- include/linux/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/sched.h b/include/linux/sched.h index d4ac19e3bd39..c53c9e2e4963 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2390,7 +2390,7 @@ extern unsigned long long task_sched_runtime(struct task_struct *task); /* sched_exec is called by processes performing an exec */ -#if defined(CONFIG_SMP) && !defined(CONFIG_SCHED_HMP) +#if defined(CONFIG_SMP) extern void sched_exec(void); #else #define sched_exec() {} -- cgit v1.2.3