diff options
| author | Mel Gorman <[email protected]> | 2021-01-27 13:52:03 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2021-02-17 13:07:25 +0000 |
| commit | 9fe1f127b913318c631d0041ecf71486e38c2c2d (patch) | |
| tree | 099925bb3e479747b50765ca341b0862806fd5c6 /lib/timerqueue.c | |
| parent | sched/fair: Remove select_idle_smt() (diff) | |
| download | kernel-9fe1f127b913318c631d0041ecf71486e38c2c2d.tar.gz kernel-9fe1f127b913318c631d0041ecf71486e38c2c2d.zip | |
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
