kernel - pmap_spin needed for UP build
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Oct 2011 01:12:25 +0000 (18:12 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 19 Oct 2011 01:12:25 +0000 (18:12 -0700)
* Place the pmap_spin declaration outside the #ifdef SMP sequence for UP.

sys/kern/kern_spinlock.c

index 018cfed..5e7bc81 100644 (file)
@@ -53,6 +53,8 @@
 #include <sys/spinlock2.h>
 #include <sys/ktr.h>
 
+struct spinlock pmap_spin = SPINLOCK_INITIALIZER(pmap_spin);
+
 #ifdef SMP
 
 struct indefinite_info {
@@ -79,7 +81,6 @@ KTR_INFO(KTR_SPIN_CONTENTION, spin, end, 1, SPIN_STRING, SPIN_ARG_SIZE);
 #ifdef INVARIANTS
 static int spin_lock_test_mode;
 #endif
-struct spinlock pmap_spin = SPINLOCK_INITIALIZER(pmap_spin);
 
 static int64_t spinlocks_contested1;
 SYSCTL_QUAD(_debug, OID_AUTO, spinlocks_contested1, CTLFLAG_RD,