summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2000-09-23 12:18:06 +0000
committerps <ps@FreeBSD.org>2000-09-23 12:18:06 +0000
commit54345fd41bbe91db9411f88932ea2f30315705ca (patch)
treefa6af5a498e4a75de9ffa0c9452502b009ca182f /sys/kern/kern_lock.c
parent7d508e1a38ba85283dfae43adc76e0ef44192200 (diff)
downloadFreeBSD-src-54345fd41bbe91db9411f88932ea2f30315705ca.zip
FreeBSD-src-54345fd41bbe91db9411f88932ea2f30315705ca.tar.gz
Move MAXCPU from machine/smp.h to machine/param.h to fix breakage
with !SMP kernels. Also, replace NCPUS with MAXCPU since they are redundant.
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index cc1455c..1e10fbe 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -545,7 +545,7 @@ lockmgr_printinfo(lkp)
printf(" with %d pending", lkp->lk_waitcount);
}
-#if defined(SIMPLELOCK_DEBUG) && (NCPUS == 1 || defined(COMPILING_LINT))
+#if defined(SIMPLELOCK_DEBUG) && (MAXCPU == 1 || defined(COMPILING_LINT))
#include <sys/kernel.h>
#include <sys/sysctl.h>
@@ -640,4 +640,4 @@ _simple_unlock(alp, id, l)
}
#elif defined(SIMPLELOCK_DEBUG)
#error "SIMPLELOCK_DEBUG is not compatible with SMP!"
-#endif /* SIMPLELOCK_DEBUG && NCPUS == 1 */
+#endif /* SIMPLELOCK_DEBUG && MAXCPU == 1 */
OpenPOWER on IntegriCloud