From 4ba6a58710bd3faf51f58b50aacd994ddff2b721 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 19 Oct 2006 14:52:03 +0000 Subject: [PATCH] MFC: Fix sign bug in #ifdef for value of INTRCNT_COUNT. Approved by: re (hrs) --- sys/amd64/include/intr_machdep.h | 4 ++-- sys/i386/include/intr_machdep.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/include/intr_machdep.h b/sys/amd64/include/intr_machdep.h index 370d0c95affe..3a7747356bcb 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 370d0c95affe..3a7747356bcb 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