summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-07-18 23:27:14 +0000
committerpjd <pjd@FreeBSD.org>2004-07-18 23:27:14 +0000
commitd538dc62fd30a8ac9beb2f57ffc4321e42569aab (patch)
tree90e39bbcaf5607e51352beb1cf095d1d7d4b9246 /sys/kern/kern_mutex.c
parente3ed14c7c1e61eb9a181845c6972f29e568da8c5 (diff)
downloadFreeBSD-src-d538dc62fd30a8ac9beb2f57ffc4321e42569aab.zip
FreeBSD-src-d538dc62fd30a8ac9beb2f57ffc4321e42569aab.tar.gz
Now we have NO_ADAPTIVE_MUTEXES option, so use it here too.
Missed by: scottl
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index ffb75e3..0dc3914 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -634,7 +634,7 @@ _mtx_unlock_sleep(struct mtx *m, int opts, const char *file, int line)
if (LOCK_LOG_TEST(&m->mtx_object, opts))
CTR1(KTR_LOCK, "_mtx_unlock_sleep: %p contested", m);
-#if defined(SMP) && defined(ADAPTIVE_MUTEXES)
+#if defined(SMP) && !defined(NO_ADAPTIVE_MUTEXES)
if (ts == NULL) {
_release_lock_quick(m);
if (LOCK_LOG_TEST(&m->mtx_object, opts))
OpenPOWER on IntegriCloud