svn commit: r326199 - head/sys/sys
Mateusz Guzik
mjg at FreeBSD.org
Sat Nov 25 20:37:14 UTC 2017
Author: mjg
Date: Sat Nov 25 20:37:13 2017
New Revision: 326199
URL: https://svnweb.freebsd.org/changeset/base/326199
Log:
Convert in-kernel thread_lock_flags calls to thread_lock when debug is disabled
The flags argument is not used in this case.
Modified:
head/sys/sys/mutex.h
Modified: head/sys/sys/mutex.h
==============================================================================
--- head/sys/sys/mutex.h Sat Nov 25 20:25:45 2017 (r326198)
+++ head/sys/sys/mutex.h Sat Nov 25 20:37:13 2017 (r326199)
@@ -145,8 +145,14 @@ void _thread_lock(struct thread *);
_thread_lock((tdp))
#endif
+#if LOCK_DEBUG > 0
#define thread_lock_flags(tdp, opt) \
thread_lock_flags_((tdp), (opt), __FILE__, __LINE__)
+#else
+#define thread_lock_flags(tdp, opt) \
+ _thread_lock(tdp)
+#endif
+
#define thread_unlock(tdp) \
mtx_unlock_spin((tdp)->td_lock)
More information about the svn-src-all
mailing list