]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
genirq/affinity: Pass affinity managed mask array to irq_build_affinity_masks
authorMing Lei <ming.lei@redhat.com>
Tue, 27 Dec 2022 02:29:01 +0000 (10:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:10:33 +0000 (17:10 +0100)
commit9e84d7bb15053bd260138b1aae59c038f7692218
treeed0e0aef51895ca01ee88c88e9a2665624d2ad8e
parenta1dcd1794730bae933b77f81a4935cfad06f58c9
genirq/affinity: Pass affinity managed mask array to irq_build_affinity_masks

[ Upstream commit 1f962d91a15af54301c63febb8ac2ba07aa3654f ]

Pass affinity managed mask array to irq_build_affinity_masks() so that the
index of the first affinity managed vector is always zero.

This allows to simplify the implementation a bit.

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-3-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>
kernel/irq/affinity.c