[RESEND PATCH v12 0/2] Make find_later_rq() choose a closer cpu in topology
From: Byungchul Park
Date: Mon Jun 18 2018 - 00:58:55 EST
Change from v11
-. Rebase onto the latest tip/sched/core
-. make the word 'cpu' in comments be upper case as Ingo did
in the commit 97fb7a0a89
-. Avoid a compile warning caused by mismatching bwt const and
non-const 'struct sched_domain' in find_cpu()
Change from v10
-. modify a comment a bit as Steven suggested
Change from v9
-. modify a comment a bit so to be more clear as Juri suggested
Change from v8
-. add suggested-by Peterz
-. add several comments
Change from v7
-. fix a trivial typo
-. modify commit messages to explain what it does more clearly
-. simplify code with an existing macro
Change from v6
-. add a comment about selection of fallback_cpu incase more than one exist
-. modify a comment explaining what we do wrt PREFER_SIBLING
Change from v5
-. exclude two patches already picked up by peterz
(sched/deadline: Make find_later_rq() choose a closer cpu in topology)
(sched/deadline: Change return value of cpudl_find())
-. apply what peterz fixed for 'prefer sibling', into deadline and rt
Change from v4
-. remove a patch that might cause huge lock contention
(by spin lock(&cpudl.lock) in a hot path of scheduler)
Change from v3
-. rename closest_cpu to best_cpu so that it align with rt
-. protect referring cpudl.elements with cpudl.lock
-. change return value of cpudl_find() to bool
Change from v2
-. add support for SD_PREFER_SIBLING
Change from v1
-. clean up the patch
Byungchul Park (2):
sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()
sched/rt: Add support for SD_PREFER_SIBLING on find_lowest_rq()
kernel/sched/deadline.c | 80 ++++++++++++++++++++++++++++++++++++++++++++-----
kernel/sched/rt.c | 78 +++++++++++++++++++++++++++++++++++++++++++++--
2 files changed, 148 insertions(+), 10 deletions(-)
--
1.9.1