Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2018 18:26:37 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338415 - head/sys/x86/x86
Message-ID:  <201808311826.w7VIQbmX055425@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808311826.w7VIQbmX055425>