aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-07-02 19:48:38 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-07-02 19:48:38 +0000
commitf4b3640475cec9299517289b7e8731ae26997cfc (patch)
treed5b84addce62cd31c3c05506a6f5b3f405f53c90 /sys/sys/lock.h
parent0479387e0ae72132bd249ae4b334d298275f06fa (diff)
downloadsrc-f4b3640475cec9299517289b7e8731ae26997cfc.tar.gz
src-f4b3640475cec9299517289b7e8731ae26997cfc.zip
inline atomics and allow tied modules to inline locks
- inline atomics in modules on i386 and amd64 (they were always inline on other arches) - allow modules to opt in to inlining locks by specifying MODULE_TIED=1 in the makefile Reviewed by: kib Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D16079
Notes
Notes: svn path=/head/; revision=335873
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 101ec9b89f77..f7e25d278f3b 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -127,7 +127,7 @@ struct lock_class {
* calling conventions for this debugging code in modules so that modules can
* work with both debug and non-debug kernels.
*/
-#if defined(KLD_MODULE) || defined(WITNESS) || defined(INVARIANTS) || \
+#if (defined(KLD_MODULE) && !defined(KLD_TIED)) || defined(WITNESS) || defined(INVARIANTS) || \
defined(LOCK_PROFILING) || defined(KTR)
#define LOCK_DEBUG 1
#else