aboutsummaryrefslogtreecommitdiff
path: root/sys/mips
diff options
context:
space:
mode:
authorOleksandr Tymoshenko <gonzo@FreeBSD.org>2020-12-30 06:59:03 +0000
committerOleksandr Tymoshenko <gonzo@FreeBSD.org>2021-01-19 00:36:39 +0000
commit248f0cabca75f421553633184b5bf2ffa459d3de (patch)
tree80f72fd068cde2ebcda69d283ae2d742feedc7c7 /sys/mips
parent83bc72a04e0d1b6dab453707290e3eb36ef69d95 (diff)
downloadsrc-248f0cabca75f421553633184b5bf2ffa459d3de.tar.gz
src-248f0cabca75f421553633184b5bf2ffa459d3de.zip
make maximum interrupt number tunable on ARM, ARM64, MIPS, and RISC-V
Use a machdep.nirq tunable intead of compile-time constant NIRQ as a value for maximum number of interrupts. It allows keep a system footprint small by default with an option to increase the limit for large systems like server-grade ARM64 Reviewd by: mhorne Differential Revision: https://reviews.freebsd.org/D27844 Submitted by: Klara, Inc. Sponsored by: Ampere Computing
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/nexus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/mips/nexus.c b/sys/mips/mips/nexus.c
index 43b94e239e41..46e7f1831029 100644
--- a/sys/mips/mips/nexus.c
+++ b/sys/mips/mips/nexus.c
@@ -77,7 +77,7 @@ __FBSDID("$FreeBSD$");
#endif /* NEXUS_DEBUG */
#ifdef INTRNG
-#define NUM_MIPS_IRQS NIRQ /* Any INTRNG-mapped IRQ */
+#define NUM_MIPS_IRQS intr_nirq /* Any INTRNG-mapped IRQ */
#else
#define NUM_MIPS_IRQS 6 /* HW IRQs only */
#endif