svn commit: r338415 - head/sys/x86/x86

John Baldwin jhb at FreeBSD.org
Fri Aug 31 18:26:38 UTC 2018


Author: jhb
Date: Fri Aug 31 18:26:37 2018
New Revision: 338415
URL: https://svnweb.freebsd.org/changeset/base/338415

Log:
  Fix build of x86 UP kernels after dynamic IRQ changes in r338360.
  
  Reported by:	Ian FREISLICH <ian.freislich at capeaugusta.com>
  Approved by:	re (gjb)
  MFC after:	2 weeks

Modified:
  head/sys/x86/x86/intr_machdep.c

Modified: head/sys/x86/x86/intr_machdep.c
==============================================================================
--- head/sys/x86/x86/intr_machdep.c	Fri Aug 31 17:36:45 2018	(r338414)
+++ head/sys/x86/x86/intr_machdep.c	Fri Aug 31 18:26:37 2018	(r338415)
@@ -173,8 +173,10 @@ intr_init_sources(void *arg)
 
 	interrupt_sources = mallocarray(num_io_irqs, sizeof(*interrupt_sources),
 	    M_INTR, M_WAITOK | M_ZERO);
+#ifdef SMP
 	interrupt_sorted = mallocarray(num_io_irqs, sizeof(*interrupt_sorted),
 	    M_INTR, M_WAITOK | M_ZERO);
+#endif
 
 	/*
 	 * - 1 ??? dummy counter.


More information about the svn-src-head mailing list