]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sched/topology: Introduce sched_numa_hop_mask()
authorValentin Schneider <vschneid@redhat.com>
Sat, 21 Jan 2023 04:24:33 +0000 (20:24 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Feb 2023 02:20:00 +0000 (18:20 -0800)
commit9feae65845f7b16376716fe70b7d4b9bf8721848
tree10c9cf542cad95b89564fbdf5617fc6b5b8857f9
parentb1beed72b8b75d365fdbc925da856c212195051b
sched/topology: Introduce sched_numa_hop_mask()

Tariq has pointed out that drivers allocating IRQ vectors would benefit
from having smarter NUMA-awareness - cpumask_local_spread() only knows
about the local node and everything outside is in the same bucket.

sched_domains_numa_masks is pretty much what we want to hand out (a cpumask
of CPUs reachable within a given distance budget), introduce
sched_numa_hop_mask() to export those cpumasks.

Link: http://lore.kernel.org/r/20220728191203.4055-1-tariqt@nvidia.com
Signed-off-by: Valentin Schneider <vschneid@redhat.com>
Reviewed-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/topology.h
kernel/sched/topology.c