summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_page_i.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-11-29 00:26:43 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-11-29 00:26:43 +0000
commitd65e84ad15428b7563dca52e708ccbf2946289b8 (patch)
tree88ffb342d6ba1b73edd0b80e562d1a5cd06e76a2 /sys/uvm/uvm_page_i.h
parent59aca508789dde53b78892994f12f046d0298f11 (diff)
use a working mutex for the freepage list. ok art deraadt
Diffstat (limited to 'sys/uvm/uvm_page_i.h')
-rw-r--r--sys/uvm/uvm_page_i.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/uvm/uvm_page_i.h b/sys/uvm/uvm_page_i.h
index b993e652220..680f2e2ee0d 100644
--- a/sys/uvm/uvm_page_i.h
+++ b/sys/uvm/uvm_page_i.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page_i.h,v 1.17 2007/04/13 18:57:49 art Exp $ */
+/* $OpenBSD: uvm_page_i.h,v 1.18 2007/11/29 00:26:42 tedu Exp $ */
/* $NetBSD: uvm_page_i.h,v 1.14 2000/11/27 07:47:42 chs Exp $ */
/*
@@ -91,11 +91,8 @@
PAGE_INLINE int
uvm_lock_fpageq(void)
{
- int s;
-
- s = splvm();
- simple_lock(&uvm.fpageqlock);
- return (s);
+ mtx_enter(&uvm.fpageqlock);
+ return (0);
}
/*
@@ -109,8 +106,7 @@ PAGE_INLINE void
uvm_unlock_fpageq(int s)
{
- simple_unlock(&uvm.fpageqlock);
- splx(s);
+ mtx_leave(&uvm.fpageqlock);
}
/*