aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
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/sys
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/sys')
-rw-r--r--sys/sys/interrupt.h5
-rw-r--r--sys/sys/intr.h3
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h
index 138e99495af2..f1770fe64b0b 100644
--- a/sys/sys/interrupt.h
+++ b/sys/sys/interrupt.h
@@ -157,13 +157,8 @@ extern struct intr_event *tty_intr_event;
extern void *vm_ih;
/* Counts and names for statistics (defined in MD code). */
-#if defined(__amd64__) || defined(__i386__) || defined(__powerpc__)
extern u_long *intrcnt; /* counts for for each device and stray */
extern char *intrnames; /* string table containing device names */
-#else
-extern u_long intrcnt[]; /* counts for for each device and stray */
-extern char intrnames[]; /* string table containing device names */
-#endif
extern size_t sintrcnt; /* size of intrcnt table */
extern size_t sintrnames; /* size of intrnames table */
diff --git a/sys/sys/intr.h b/sys/sys/intr.h
index 5e305e719e10..c922b10f3368 100644
--- a/sys/sys/intr.h
+++ b/sys/sys/intr.h
@@ -164,4 +164,7 @@ intr_ipi_increment_count(u_long *counter, u_int cpu)
u_long * intr_ipi_setup_counters(const char *name);
#endif
+
+extern int intr_nirq; /* number of IRQs on intrng platforms */
+
#endif /* _SYS_INTR_H */