sched/fair: Skip idle cfs_rq
authorVincent Guittot <vincent.guittot@linaro.org>
Thu, 7 Jan 2021 10:33:23 +0000 (11:33 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 14 Jan 2021 10:20:10 +0000 (11:20 +0100)
commitfc488ffd4297f661b3e9d7450dcdb9089a53df7c
tree4fed12010623b18ba872211dd126c429368c2ce0
parent8c1f560c1ea3f19e22ba356f62680d9d449c9ec2
sched/fair: Skip idle cfs_rq

Don't waste time checking whether an idle cfs_rq could be the busiest
queue. Furthermore, this can end up selecting a cfs_rq with a high load
but being idle in case of migrate_load.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Link: https://lkml.kernel.org/r/20210107103325.30851-2-vincent.guittot@linaro.org
kernel/sched/fair.c