summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_page.h
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-12-18 11:05:53 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-12-18 11:05:53 +0000
commit77542aa901a76f5b145d7a04a62597c53cc79e5c (patch)
tree54d1877eccfa08888e30d128a7f4bd6cfe6a1861 /sys/uvm/uvm_page.h
parentdc1f04b781be238677f304614eecfc2a8a582ce6 (diff)
Turn the uvm_{lock/unlock}_fpageq() inlines into
macros that just expand into the mutex functions to keep the abstraction, do assorted cleanup. ok miod@,art@
Diffstat (limited to 'sys/uvm/uvm_page.h')
-rw-r--r--sys/uvm/uvm_page.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/uvm/uvm_page.h b/sys/uvm/uvm_page.h
index 75e03fb4596..49220e14611 100644
--- a/sys/uvm/uvm_page.h
+++ b/sys/uvm/uvm_page.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.h,v 1.25 2007/04/18 18:51:37 art Exp $ */
+/* $OpenBSD: uvm_page.h,v 1.26 2007/12/18 11:05:52 thib Exp $ */
/* $NetBSD: uvm_page.h,v 1.19 2000/12/28 08:24:55 chs Exp $ */
/*
@@ -302,6 +302,8 @@ static int vm_physseg_find(paddr_t, int *);
#define uvm_lock_pageq() simple_lock(&uvm.pageqlock)
#define uvm_unlock_pageq() simple_unlock(&uvm.pageqlock)
+#define uvm_lock_fpageq() mtx_enter(&uvm.fpageqlock);
+#define uvm_unlock_fpageq() mtx_leave(&uvm.fpageqlock);
#define uvm_pagehash(obj,off) \
(((unsigned long)obj+(unsigned long)atop(off)) & uvm.page_hashmask)