summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_lock.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-01-18 18:02:50 +0000
committerjhb <jhb@FreeBSD.org>2006-01-18 18:02:50 +0000
commit59fe0d8fe886d4784ee2d673577bc1779316033e (patch)
tree1417ec2418a7b9f6389436ad01351de153eca006 /sys/kern/subr_lock.c
parent2bd2572956fb6a47929f59a00e023195a28d976d (diff)
downloadFreeBSD-src-59fe0d8fe886d4784ee2d673577bc1779316033e.zip
FreeBSD-src-59fe0d8fe886d4784ee2d673577bc1779316033e.tar.gz
Always include the lock_classes[] array in the kernel. The
"is it a spinlock" test in mtx_destroy() needs it even in non-debug kernels. Reported by: danfe
Diffstat (limited to 'sys/kern/subr_lock.c')
-rw-r--r--sys/kern/subr_lock.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/subr_lock.c b/sys/kern/subr_lock.c
index db1f8c9..cb7bc76 100644
--- a/sys/kern/subr_lock.c
+++ b/sys/kern/subr_lock.c
@@ -49,13 +49,11 @@ __FBSDID("$FreeBSD$");
CTASSERT(LOCK_CLASS_MAX == 15);
-#if LOCK_DEBUG > 0 || defined(DDB)
struct lock_class *lock_classes[LOCK_CLASS_MAX + 1] = {
&lock_class_mtx_spin,
&lock_class_mtx_sleep,
&lock_class_sx,
};
-#endif
void
lock_init(struct lock_object *lock, struct lock_class *class, const char *name,
OpenPOWER on IntegriCloud