Skip to content

Commit 44e2fb4

Browse files
tytydracoExactExampl
authored andcommitted
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>
1 parent c10945a commit 44e2fb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/sched/fair.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static unsigned int sched_nr_latency = 8;
122122
* After fork, child runs first. If set to 0 (default) then
123123
* parent will (try to) run first.
124124
*/
125-
unsigned int sysctl_sched_child_runs_first __read_mostly;
125+
unsigned int sysctl_sched_child_runs_first __read_mostly = 1;
126126

127127
/*
128128
* SCHED_OTHER wake-up granularity.

0 commit comments

Comments
 (0)