summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn@rivosinc.com>2024-02-22 15:09:58 +0530
committerThomas Gleixner <tglx@linutronix.de>2024-02-23 10:18:44 +0100
commit5b98d210ac1e4eb35abfbd940df50dec10ae81e1 (patch)
tree65242661f0df6215db299588a6ad1b94332d1892 /arch/x86
parent3c46fc5b5507be1f4aa144a1fbd83b0ccba04cc6 (diff)
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
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/hw_irq.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h
index b02c3cd3c0f6..edebf1020e04 100644
--- a/arch/x86/include/asm/hw_irq.h
+++ b/arch/x86/include/asm/hw_irq.h
@@ -16,8 +16,6 @@
#include <asm/irq_vectors.h>
-#define IRQ_MATRIX_BITS NR_VECTORS
-
#ifndef __ASSEMBLY__
#include <linux/percpu.h>