1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

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
This commit is contained in:
John Baldwin 2006-01-18 18:02:50 +00:00
parent 949c433eab
commit 25e498b4b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154523

View File

@ -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,