aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/lock.h
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2000-09-23 12:18:06 +0000
committerPaul Saab <ps@FreeBSD.org>2000-09-23 12:18:06 +0000
commit92b123a0025f64077d2efd31c48bb424bfac3c14 (patch)
treec1801d29ad326058c7c77071f5ba291f60029374 /sys/i386/include/lock.h
parent5ef724ac4abbc89c263dec6c955d4e0ee5e03a7f (diff)
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.
Notes
Notes: svn path=/head/; revision=66296
Diffstat (limited to 'sys/i386/include/lock.h')
-rw-r--r--sys/i386/include/lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/include/lock.h b/sys/i386/include/lock.h
index b4af09d9c579..7871606ddddc 100644
--- a/sys/i386/include/lock.h
+++ b/sys/i386/include/lock.h
@@ -130,7 +130,7 @@ extern struct simplelock mpintr_lock;
extern struct simplelock mcount_lock;
extern struct simplelock panic_lock;
-#if !defined(SIMPLELOCK_DEBUG) && NCPUS > 1
+#if !defined(SIMPLELOCK_DEBUG) && MAXCPU > 1
/*
* This set of defines turns on the real functions in i386/isa/apic_ipl.s.
*/
@@ -139,7 +139,7 @@ extern struct simplelock panic_lock;
#define simple_lock_try(alp) s_lock_try(alp)
#define simple_unlock(alp) s_unlock(alp)
-#endif /* !SIMPLELOCK_DEBUG && NCPUS > 1 */
+#endif /* !SIMPLELOCK_DEBUG && MAXCPU > 1 */
#endif /* LOCORE */