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)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2016 22:15:55 +0000 (15:15 -0700)
commitc50cc2299cb1a9ae769c955f5dd09a9648b1600e
tree1b1691297611a041ba2eb7c1e1f6786ff4a8c884
parent4a5e890ec60d2e341fa560d8149997f5f0c48d67
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