summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-09-19 18:59:52 +0000
committerjhb <jhb@FreeBSD.org>2003-09-19 18:59:52 +0000
commit3cc6e3f53ce42c19af62d840203ee9d993758cca (patch)
tree43df6d3673086c252474f01e919de286bd8049db
parentbe091f65b49efaef8d7c1d3f4ede0ed2b60683a2 (diff)
downloadFreeBSD-src-3cc6e3f53ce42c19af62d840203ee9d993758cca.zip
FreeBSD-src-3cc6e3f53ce42c19af62d840203ee9d993758cca.tar.gz
Don't inline mutex operations if MUTEX_PROFILING is enabled.
Reported by: sam
-rw-r--r--sys/sys/mutex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h
index 9601fd7..f9c38e4 100644
--- a/sys/sys/mutex.h
+++ b/sys/sys/mutex.h
@@ -263,7 +263,7 @@ extern struct mtx_pool *mtxpool_sleep;
#ifndef LOCK_DEBUG
#error LOCK_DEBUG not defined, include <sys/lock.h> before <sys/mutex.h>
#endif
-#if LOCK_DEBUG > 0 || defined(MUTEX_NOINLINE)
+#if LOCK_DEBUG > 0 || defined(MUTEX_NOINLINE) || defined(MUTEX_PROFILING)
#define mtx_lock_flags(m, opts) \
_mtx_lock_flags((m), (opts), LOCK_FILE, LOCK_LINE)
#define mtx_unlock_flags(m, opts) \
OpenPOWER on IntegriCloud