Mel Gorman 9fe1f127b9 sched/fair: Merge select_idle_core/cpu()
Both select_idle_core() and select_idle_cpu() do a loop over the same
cpumask. Observe that by clearing the already visited CPUs, we can
fold the iteration and iterate a core at a time.

All we need to do is remember any non-idle CPU we encountered while
scanning for an idle core. This way we'll only iterate every CPU once.

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20210127135203.19633-5-mgorman@techsingularity.net
2021-02-17 14:07:25 +01:00
..
2021-02-17 14:04:39 +01:00
2020-11-10 18:39:04 +01:00
2020-10-29 11:00:30 +01:00
2021-01-27 17:26:43 +01:00
2020-12-14 18:29:11 -08:00
2020-12-14 18:29:11 -08:00
2020-06-15 14:10:06 +02:00
2021-02-17 14:04:39 +01:00