sched/fair: Remove useless check in select_idle_core()
authorAbel Wu <wuyun.abel@bytedance.com>
Wed, 7 Sep 2022 11:19:58 +0000 (19:19 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 7 Sep 2022 19:53:46 +0000 (21:53 +0200)
commit8eeeed9c4a791f0d1f2ea830eb75a4246c117ae2
treeef4316da4bbe18bf4980c14fde6ab61ced927299
parentb9bae70440d21e106fbc098803b5a190df65f2e0
sched/fair: Remove useless check in select_idle_core()

The function select_idle_core() only gets called when has_idle_cores
is true which can be possible only when sched_smt_present is enabled.

This change also aligns select_idle_core() with select_idle_smt() in
the way that the caller do the check if necessary.

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