[PATCH v4 0/3] sched: Get rid of select_task_rq()'s sd_flag parameter

From: Valentin Schneider
Date: Mon Nov 02 2020 - 13:48:08 EST


Hi folks,

This is v4 of that one series I've had stashed for a while [1]. I haven't
revisited the outstanding discussion bits, the most interesting part being that
we could get rid of the for_each_domain() loop in select_task_rq_fair() (or at
the very least simplify it). In any case, the first few patches are IMO a decent
cleanup on their own, hence me resubmitting them.

Links
=====

[1]: https://lore.kernel.org/lkml/20200415210512.805-1-valentin.schneider@xxxxxxx/

Revisions
=========

v3 -> v4
--------
o Dropped want_affine related patches
o Made WF_{TTWU, FORK, EXEC} and SD_BALANCE_{WAKE, FORK, EXEC} share a nibble
(Peter)

v2 -> v3
--------
o Rebased on top of v5.7-rc1 (didn't re-run performance tests)
o Collected Reviewed-by (Dietmar)
o Updated changelog of 3/9 (Dietmar)

v1 -> v2
--------
o Removed the 'RFC' tag
o Made the sd_flags syctl read-only
o Removed the SD_LOAD_BALANCE flag
o Cleaned up ugly changes thanks to the above

Valentin Schneider (3):
sched: Add WF_TTWU, WF_EXEC wakeup flags
sched: Remove select_task_rq()'s sd_flag parameter
sched/fair: Dissociate wakeup decisions from SD flag value

kernel/sched/core.c | 10 +++++-----
kernel/sched/deadline.c | 4 ++--
kernel/sched/fair.c | 13 +++++++------
kernel/sched/idle.c | 2 +-
kernel/sched/rt.c | 4 ++--
kernel/sched/sched.h | 23 +++++++++++++++--------
kernel/sched/stop_task.c | 2 +-
7 files changed, 33 insertions(+), 25 deletions(-)

--
2.27.0