summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-10-10 19:26:35 +0000
committerjhb <jhb@FreeBSD.org>2006-10-10 19:26:35 +0000
commit1e61deec33e53b4b33b13304304e42d8953fff64 (patch)
treeeb75eefe073662afba00dedb25c9a6e3fd9dc2da /sys
parent26e34ffad0d340f779d3225a5408fc8ad6779240 (diff)
downloadFreeBSD-src-1e61deec33e53b4b33b13304304e42d8953fff64.zip
FreeBSD-src-1e61deec33e53b4b33b13304304e42d8953fff64.tar.gz
Oops, fix sign bug in #ifdef for value of INTRCNT_COUNT.
PR: kern/99870 Submitted by: jkim MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/include/intr_machdep.h4
-rw-r--r--sys/i386/include/intr_machdep.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/include/intr_machdep.h b/sys/amd64/include/intr_machdep.h
index 0d187c1..886811c 100644
--- a/sys/amd64/include/intr_machdep.h
+++ b/sys/amd64/include/intr_machdep.h
@@ -56,9 +56,9 @@
* - 7 counters for each CPU for IPI counters for SMP.
*/
#ifdef SMP
-#define INTRCNT_COUNT (1 + NUM_IO_INTS * 2 + 1)
-#else
#define INTRCNT_COUNT (1 + NUM_IO_INTS * 2 + (1 + 7) * MAXCPU)
+#else
+#define INTRCNT_COUNT (1 + NUM_IO_INTS * 2 + 1)
#endif
#ifndef LOCORE
diff --git a/sys/i386/include/intr_machdep.h b/sys/i386/include/intr_machdep.h
index 0d187c1..886811c 100644
--- a/sys/i386/include/intr_machdep.h
+++ b/sys/i386/include/intr_machdep.h
@@ -56,9 +56,9 @@
* - 7 counters for each CPU for IPI counters for SMP.
*/
#ifdef SMP
-#define INTRCNT_COUNT (1 + NUM_IO_INTS * 2 + 1)
-#else
#define INTRCNT_COUNT (1 + NUM_IO_INTS * 2 + (1 + 7) * MAXCPU)
+#else
+#define INTRCNT_COUNT (1 + NUM_IO_INTS * 2 + 1)
#endif
#ifndef LOCORE
OpenPOWER on IntegriCloud