aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_map.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/vm/vm_map.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/vm/vm_map.h')
-rw-r--r--sys/vm/vm_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h
index 65b8f23ce583..7502b95ee1a8 100644
--- a/sys/vm/vm_map.h
+++ b/sys/vm/vm_map.h
@@ -206,7 +206,7 @@ struct vm_map {
#define MAP_BUSY_WAKEUP 0x02
#ifdef _KERNEL
-#ifdef KLD_MODULE
+#if defined(KLD_MODULE) && !defined(KLD_TIED)
#define vm_map_max(map) vm_map_max_KBI((map))
#define vm_map_min(map) vm_map_min_KBI((map))
#define vm_map_pmap(map) vm_map_pmap_KBI((map))