aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2017-03-09 00:58:21 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2017-03-09 00:58:21 +0000
commit161a0ebe9c4e86b29750123caa09f01419e3cafa (patch)
tree8b3ad8c5356fca62cf4982216b6071f87f296c2e /sys/sys/lock.h
parentd0147e10cab54703f973616c0a0333cb4c3702f0 (diff)
downloadsrc-161a0ebe9c4e86b29750123caa09f01419e3cafa.tar.gz
src-161a0ebe9c4e86b29750123caa09f01419e3cafa.zip
Do not turn LOCK_DEBUG for INVARIANT_SUPPORT. This allows to add
INVARIANT_SUPPORT into a kernel without performance penalties. Discussed with: jhb, mjg
Notes
Notes: svn path=/head/; revision=314932
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 cc34cb46b716..a5beba116fca 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -126,7 +126,7 @@ struct lock_class {
* work with both debug and non-debug kernels.
*/
#if defined(KLD_MODULE) || defined(WITNESS) || defined(INVARIANTS) || \
- defined(INVARIANT_SUPPORT) || defined(LOCK_PROFILING) || defined(KTR)
+ defined(LOCK_PROFILING) || defined(KTR)
#define LOCK_DEBUG 1
#else
#define LOCK_DEBUG 0