diff options
author | avatar <avatar@FreeBSD.org> | 2006-01-07 02:07:08 +0000 |
---|---|---|
committer | avatar <avatar@FreeBSD.org> | 2006-01-07 02:07:08 +0000 |
commit | 6ad90eb0a77b2fee9df4004d2400b9fcf43a1e7f (patch) | |
tree | cc6ee5ae9746f80bc3883cfa16148b0474a7d521 /sys/kern/kern_mutex.c | |
parent | 713f710c8d1e758715ed95449a6fe66be69904c8 (diff) | |
download | FreeBSD-src-6ad90eb0a77b2fee9df4004d2400b9fcf43a1e7f.zip FreeBSD-src-6ad90eb0a77b2fee9df4004d2400b9fcf43a1e7f.tar.gz |
Trying to fix compilation bustage introduced in rev1.160 by converting
a missing lo_class to LO_CLASSINDEX().
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 9bfe31f1..f06813a 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -884,7 +884,7 @@ mtx_destroy(struct mtx *m) MPASS((m->mtx_lock & (MTX_RECURSED|MTX_CONTESTED)) == 0); /* Perform the non-mtx related part of mtx_unlock_spin(). */ - if (m->mtx_object.lo_class == &lock_class_mtx_spin) + if (LO_CLASSINDEX(&m->mtx_object) == LOCK_CLASS_SPIN_MUTEX) spinlock_exit(); /* Tell witness this isn't locked to make it happy. */ |