summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNam Cao <namcao@linutronix.de>2026-03-16 10:28:50 +0300
committerThomas Gleixner <tglx@kernel.org>2026-03-17 12:57:03 +0300
commit56c167a0c0fa24aa6eb14c4e81cc4bad1048d651 (patch)
tree0e230f02eae226dc95d15ee6ee4af200fd420910
parent5a8103a6fb0ae9cf99c0271b17474468d6bae2b2 (diff)
downloadlinux-56c167a0c0fa24aa6eb14c4e81cc4bad1048d651.tar.xz
genirq/matrix, LoongArch: Delete IRQ_MATRIX_BITS leftovers
Delete IRQ_MATRIX_BITS leftovers after commit 5b98d210ac1e ("genirq/matrix: Dynamic bitmap allocation") has made IRQ_MATRIX_BITS obsolete. Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260316072850.467995-1-namcao@linutronix.de
-rw-r--r--arch/loongarch/include/asm/irq.h1
-rw-r--r--kernel/irq/matrix.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/loongarch/include/asm/irq.h b/arch/loongarch/include/asm/irq.h
index 3943647503a9..537add26daf4 100644
--- a/arch/loongarch/include/asm/irq.h
+++ b/arch/loongarch/include/asm/irq.h
@@ -48,7 +48,6 @@ void spurious_interrupt(void);
*/
#define NR_VECTORS 256
#define NR_LEGACY_VECTORS 16
-#define IRQ_MATRIX_BITS NR_VECTORS
#define AVEC_IRQ_SHIFT 4
#define AVEC_IRQ_BIT 8
diff --git a/kernel/irq/matrix.c b/kernel/irq/matrix.c
index 0f79a4abea05..faafb43a4e61 100644
--- a/kernel/irq/matrix.c
+++ b/kernel/irq/matrix.c
@@ -39,7 +39,7 @@ struct irq_matrix {
/**
* irq_alloc_matrix - Allocate a irq_matrix structure and initialize it
- * @matrix_bits: Number of matrix bits must be <= IRQ_MATRIX_BITS
+ * @matrix_bits: Number of matrix bits
* @alloc_start: From which bit the allocation search starts
* @alloc_end: At which bit the allocation search ends, i.e first
* invalid bit