From a536cf8ac858ac8388272d98f9baf8e7ba25b646 Mon Sep 17 00:00:00 2001 From: Syed Rameez Mustafa Date: Thu, 12 Jun 2014 10:47:12 -0700 Subject: sched: Introduce spill threshold tunables to manage overcommitment When the number of tasks intended for a cluster exceed the number of mostly idle CPUs in that cluster, the scheduler currently freely uses CPUs in other clusters if possible. While this is optimal for performance the power trade off can be quite significant. Introduce spill threshold tunables that govern the extent to which the scheduler should attempt to contain tasks within a cluster. Change-Id: I797e6c6b2aa0c3a376dad93758abe1d587663624 Signed-off-by: Syed Rameez Mustafa [rameezmustafa@codeaurora.org]: Port to msm-3.18] Signed-off-by: Syed Rameez Mustafa --- include/linux/sched/sysctl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h index b65ee06f80c9..0a6047acb5d2 100644 --- a/include/linux/sched/sysctl.h +++ b/include/linux/sched/sysctl.h @@ -51,13 +51,16 @@ extern unsigned int sysctl_sched_task_migrate_notify_pct; #ifdef CONFIG_SCHED_HMP extern unsigned int sysctl_sched_enable_hmp_task_placement; +extern unsigned int sysctl_sched_spill_nr_run; extern unsigned int sysctl_sched_mostly_idle_nr_run; +extern unsigned int sysctl_sched_spill_load_pct; extern unsigned int sysctl_sched_mostly_idle_load_pct; extern unsigned int sysctl_sched_small_task_pct; extern unsigned int sysctl_sched_upmigrate_pct; extern unsigned int sysctl_sched_downmigrate_pct; extern int sysctl_sched_upmigrate_min_nice; extern unsigned int sysctl_sched_enable_power_aware; +extern unsigned int sysctl_sched_powerband_limit_pct; #else /* CONFIG_SCHED_HMP */ -- cgit v1.2.3