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)
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to