summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-26 18:18:39 +0000
committerattilio <attilio@FreeBSD.org>2013-02-26 18:18:39 +0000
commit210a93e7f7575c047adaa80ddfa1d465e9334d81 (patch)
treeea513dc3d79fb6d694287d9020e747cde0f6e707 /sys/vm/vm_object.h
parentc5315c03fb9cd39e35779a299536f2388e3a6ee4 (diff)
parent134623836d0dcb10f5bc79c883bd239098952cca (diff)
downloadFreeBSD-src-210a93e7f7575c047adaa80ddfa1d465e9334d81.zip
FreeBSD-src-210a93e7f7575c047adaa80ddfa1d465e9334d81.tar.gz
Merge from vmcontention
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 2cfd37f..fa806a3 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -209,7 +209,9 @@ extern struct vm_object kmem_object_store;
#define VM_OBJECT_LOCK_ASSERT(object, type) \
mtx_assert(&(object)->mtx, (type))
#define VM_OBJECT_LOCKED(object) mtx_owned(&(object)->mtx)
-#define VM_OBJECT_MTX(object) (&(object)->mtx)
+#define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \
+ msleep((wchan), &(object)->mtx, (pri), \
+ (wmesg), (timo))
#define VM_OBJECT_TRYLOCK(object) mtx_trylock(&(object)->mtx)
#define VM_OBJECT_UNLOCK(object) mtx_unlock(&(object)->mtx)
OpenPOWER on IntegriCloud