sched/fair: Avoid double search on same cpu
authorAbel Wu <wuyun.abel@bytedance.com>
Wed, 7 Sep 2022 11:19:57 +0000 (19:19 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 7 Sep 2022 19:53:46 +0000 (21:53 +0200)
commitb9bae70440d21e106fbc098803b5a190df65f2e0
treec2b6a828a631d00a7adb80b24b19256396cc44b5
parent3e6efe87cd5ccabf0f1d4e3ef25881ca0fd337e7
sched/fair: Avoid double search on same cpu

The prev cpu is checked at the beginning of SIS, and it's unlikely
to be idle before the second check in select_idle_smt(). So we'd
better focus on its SMT siblings.

Signed-off-by: Abel Wu <wuyun.abel@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Josh Don <joshdon@google.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Link: https://lore.kernel.org/r/20220907112000.1854-3-wuyun.abel@bytedance.com
kernel/sched/fair.c