aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2017-02-17 05:39:40 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2017-02-17 05:39:40 +0000
commitffd5c94c4fc333e76f19571a02c6c704177c596d (patch)
treef9ae906cef81d0de13ae7855e51d8fb09858159e /sys/kern/kern_mutex.c
parent7a465c285fb94b892496ed14ac331f45944f420c (diff)
downloadsrc-ffd5c94c4fc333e76f19571a02c6c704177c596d.tar.gz
src-ffd5c94c4fc333e76f19571a02c6c704177c596d.zip
Notes
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 23b731b77880..a6847d0fb207 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -275,7 +275,11 @@ __mtx_unlock_flags(volatile uintptr_t *c, int opts, const char *file, int line)
line);
mtx_assert(m, MA_OWNED);
+#ifdef LOCK_PROFILING
__mtx_unlock_sleep(c, opts, file, line);
+#else
+ __mtx_unlock(m, curthread, opts, file, line);
+#endif
TD_LOCKS_DEC(curthread);
}