genirq/matrix: Dynamic bitmap allocation
authorBjörn Töpel <bjorn@rivosinc.com>
Thu, 22 Feb 2024 09:39:58 +0000 (15:09 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 Feb 2024 09:18:44 +0000 (10:18 +0100)
commit5b98d210ac1e4eb35abfbd940df50dec10ae81e1
tree65242661f0df6215db299588a6ad1b94332d1892
parent3c46fc5b5507be1f4aa144a1fbd83b0ccba04cc6
genirq/matrix: Dynamic bitmap allocation

A future user of the matrix allocator, does not know the size of the matrix
bitmaps at compile time.

To avoid wasting memory on unnecessary large bitmaps, size the bitmap at
matrix allocation time.

Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240222094006.1030709-11-apatel@ventanamicro.com
arch/x86/include/asm/hw_irq.h
kernel/irq/matrix.c