From 77542aa901a76f5b145d7a04a62597c53cc79e5c Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Tue, 18 Dec 2007 11:05:53 +0000 Subject: 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@ --- sys/uvm/uvm_page.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/uvm/uvm_page.h') 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) -- cgit v1.2.3