Date: Sat, 25 Nov 2017 20:37:13 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326199 - head/sys/sys Message-ID: <201711252037.vAPKbD0V022287@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711252037.vAPKbD0V022287>