From 92b123a0025f64077d2efd31c48bb424bfac3c14 Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Sat, 23 Sep 2000 12:18:06 +0000 Subject: 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. --- sys/i386/include/lock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/i386/include/lock.h') 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 */ -- cgit v1.2.3