diff options
author | 2023-08-19 07:12:36 -0700 | |
---|---|---|
committer | 2023-09-15 13:48:10 +0200 | |
commit | 8ab63d418d4339d996f80d02a00dbce0aa3ff972 (patch) | |
tree | 51b04d5fdb48770303fdfad3875fa1c177253230 /lib/cpumask.c | |
parent | sched/topology: Fix sched_numa_find_nth_cpu() in CPU-less case (diff) | |
download | wireguard-linux-8ab63d418d4339d996f80d02a00dbce0aa3ff972.tar.xz wireguard-linux-8ab63d418d4339d996f80d02a00dbce0aa3ff972.zip |
sched/topology: Fix sched_numa_find_nth_cpu() in non-NUMA case
When CONFIG_NUMA is enabled, sched_numa_find_nth_cpu() searches for a
CPU in sched_domains_numa_masks. The masks includes only online CPUs,
so effectively offline CPUs are skipped.
When CONFIG_NUMA is disabled, the fallback function should be consistent.
Fixes: cd7f55359c90 ("sched: add sched_numa_find_nth_cpu()")
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20230819141239.287290-5-yury.norov@gmail.com
Diffstat (limited to 'lib/cpumask.c')
0 files changed, 0 insertions, 0 deletions