sched/fair: add tunable to set initial task load
authorTodd Kjos <tkjos@google.com>
Sat, 12 Mar 2016 00:44:16 +0000 (16:44 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:29:32 +0000 (14:59 +0530)
commitb312c991e9055198e96571feaf73df26e647df56
tree9d9b0227cf9272781c53fb741452b8b961067c47
parentd42fb8f959562bc34f7f2b17ca1e370f93a306a9
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>"
include/linux/sched/sysctl.h
kernel/sched/fair.c
kernel/sysctl.c