aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/interrupt.h
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2019-03-02 01:51:41 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2019-03-02 01:51:41 +0000
commit51244b1e46c89395d35a9e07d0b9671209513e01 (patch)
tree81dc9de507c4556c5466099b6f5a54db197deb6d /sys/sys/interrupt.h
parent7d93ab5e35d97eb23cb4772be4d431a782a65395 (diff)
downloadsrc-51244b1e46c89395d35a9e07d0b9671209513e01.tar.gz
src-51244b1e46c89395d35a9e07d0b9671209513e01.zip
powerpc: Scale intrcnt by mp_ncpus
On very large powerpc64 systems (2x22x4 power9) it's very easy to run out of available IRQs and crash the system at boot. Scale the count by mp_ncpus, similar to x86, so this doesn't happen. Further work can be done in the future to scale the I/O IRQs as well, but that's left for the future. Submitted by: mmacy MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=344716
Diffstat (limited to 'sys/sys/interrupt.h')
-rw-r--r--sys/sys/interrupt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h
index 5c634054c7a8..990f8057cc43 100644
--- a/sys/sys/interrupt.h
+++ b/sys/sys/interrupt.h
@@ -156,7 +156,7 @@ extern struct intr_event *clk_intr_event;
extern void *vm_ih;
/* Counts and names for statistics (defined in MD code). */
-#if defined(__amd64__) || defined(__i386__)
+#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