sched/fair: Cleanup for SIS_PROP
authorAbel Wu <wuyun.abel@bytedance.com>
Wed, 7 Sep 2022 11:20:00 +0000 (19:20 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 7 Sep 2022 19:53:47 +0000 (21:53 +0200)
commit96c1c0cfe493a7ed549169a6f044bbb83e490fb5
treebc488c24569f03a555d13909d622c2f86a45578f
parent398ba2b0cc0a43964fe3d2dd19cb2a478f1f220b
sched/fair: Cleanup for SIS_PROP

The sched-domain of this cpu is only used for some heuristics when
SIS_PROP is enabled, and it should be irrelevant whether the local
sd_llc is valid or not, since all we care about is target sd_llc
if !SIS_PROP.

Access the local domain only when there is a need.

Signed-off-by: Abel Wu <wuyun.abel@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20220907112000.1854-6-wuyun.abel@bytedance.com
kernel/sched/fair.c