sched: Process new forks before processing their parent

This should let brand new tasks launch marginally faster.

Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Signed-off-by: sohamxda7 <sensoham135@gmail.com>
Signed-off-by: Peppe289 <gsperanza204@gmail.com>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
This commit is contained in:
Tyler Nijmeh 2020-02-16 22:56:44 -08:00 committed by Ksawlii
parent ff454a80ba
commit 9341ba576e

View file

@ -74,7 +74,7 @@ static unsigned int sched_nr_latency = 8;
* After fork, child runs first. If set to 0 (default) then * After fork, child runs first. If set to 0 (default) then
* parent will (try to) run first. * parent will (try to) run first.
*/ */
unsigned int sysctl_sched_child_runs_first __read_mostly; unsigned int sysctl_sched_child_runs_first __read_mostly = 1;
/* /*
* SCHED_OTHER wake-up granularity. * SCHED_OTHER wake-up granularity.