summaryrefslogtreecommitdiff
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorTodd Kjos <tkjos@google.com>2016-03-11 16:44:16 -0800
committerAmit Pundir <amit.pundir@linaro.org>2016-09-14 14:59:32 +0530
commitb312c991e9055198e96571feaf73df26e647df56 (patch)
tree9d9b0227cf9272781c53fb741452b8b961067c47 /kernel/sysctl.c
parentd42fb8f959562bc34f7f2b17ca1e370f93a306a9 (diff)
sched/fair: add tunable to set initial task load
The choice of initial task load upon fork has a large influence on CPU and OPP selection when scheduler-driven DVFS is in use. Make this tuneable by adding a new sysctl "sched_initial_task_util". If the sched governor is not used, the default remains at SCHED_LOAD_SCALE Otherwise, the value from the sysctl is used. This defaults to 0. Signed-off-by: "Todd Kjos <tkjos@google.com>"
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 831d674a5566..dd46f370b73a 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -319,6 +319,13 @@ static struct ctl_table kern_table[] = {
.proc_handler = proc_dointvec,
},
{
+ .procname = "sched_initial_task_util",
+ .data = &sysctl_sched_initial_task_util,
+ .maxlen = sizeof(unsigned int),
+ .mode = 0644,
+ .proc_handler = proc_dointvec,
+ },
+ {
.procname = "sched_cstate_aware",
.data = &sysctl_sched_cstate_aware,
.maxlen = sizeof(unsigned int),