From 51244b1e46c89395d35a9e07d0b9671209513e01 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sat, 2 Mar 2019 01:51:41 +0000 Subject: 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 --- sys/sys/interrupt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/sys/interrupt.h') 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 -- cgit v1.2.3