]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Dissociate wakeup decisions from SD flag value
authorValentin Schneider <valentin.schneider@arm.com>
Mon, 2 Nov 2020 18:45:14 +0000 (18:45 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 10 Nov 2020 17:39:06 +0000 (18:39 +0100)
commitd647c7d81e03641496748ba0879a010dedcbc709
treeff57347cb391f48949bfeb7102b5450b7b1182ff
parent9ec5346b3614237c540676a75042cb685c190252
sched/fair: Dissociate wakeup decisions from SD flag value

The CFS wakeup code will only ever go through EAS / its fast path on
"regular" wakeups (i.e. not on forks or execs). These are currently gated
by a check against 'sd_flag', which would be SD_BALANCE_WAKE at wakeup.

However, we now have a flag that explicitly tells us whether a wakeup is a
"regular" one, so hinge those conditions on that flag instead.

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201102184514.2733-4-valentin.schneider@arm.com
kernel/sched/fair.c