summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2022-12-27 10:29:02 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-10 17:10:33 +0100
commitaeeb4e4e49f8118d00cf803581555a2a2905759c (patch)
treef9bb759835c1fc6e8bff03469c78b9e6c3f84fb3 /include
parent9e84d7bb15053bd260138b1aae59c038f7692218 (diff)
downloadlinux-aeeb4e4e49f8118d00cf803581555a2a2905759c.tar.gz
linux-aeeb4e4e49f8118d00cf803581555a2a2905759c.tar.bz2
linux-aeeb4e4e49f8118d00cf803581555a2a2905759c.zip
genirq/affinity: Don't pass irq_affinity_desc array to irq_build_affinity_masks
[ Upstream commit e7bdd7f0cbd1c001bb9b4d3313edc5ee094bc3f8 ] Prepare for abstracting irq_build_affinity_masks() into a public function for assigning all CPUs evenly into several groups. Don't pass irq_affinity_desc array to irq_build_affinity_masks, instead return a cpumask array by storing each assigned group into one element of the array. This allows to provide a generic interface for grouping all CPUs evenly from a NUMA and CPU locality viewpoint, and the cost is one extra allocation in irq_build_affinity_masks(), which should be fine since it is done via GFP_KERNEL and irq_build_affinity_masks() is a slow path anyway. Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: John Garry <john.g.garry@oracle.com> Reviewed-by: Jens Axboe <axboe@kernel.dk> Link: https://lore.kernel.org/r/20221227022905.352674-4-ming.lei@redhat.com Stable-dep-of: 0263f92fadbb ("lib/group_cpus.c: avoid acquiring cpu hotplug lock in group_cpus_evenly") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions