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)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 17 Jan 2023 17:50:06 +0000 (18:50 +0100)
commit1f962d91a15af54301c63febb8ac2ba07aa3654f
tree3897f7460cfc43dfc10e1c60c993df9c56ead718
parentcdf07f0ea48a3b52f924714d477366ac510ee870
genirq/affinity: Pass affinity managed mask array to irq_build_affinity_masks

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