summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2010-06-29 20:39:28 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2010-06-29 20:39:28 +0000
commitfdf7b79f2e96b45327a5970f13b7499d87f72dad (patch)
tree8287850963bbe02f13071461ecabfe3aefb0c5e3 /sys/kern
parent73803e6455f42883135a7c19e1d118ff952fc86e (diff)
Add a no_constraint uvm_constraint_range; use it in the pool code.
ok tedu@, beck@, oga@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_pool.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index a8c7771c468..edcc2fe1ce8 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.93 2010/06/27 03:03:48 thib Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.94 2010/06/29 20:39:27 thib Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -94,12 +94,6 @@ struct pool_item {
((pp)->pr_nitems < (pp)->pr_minitems)
/*
- * Default constraint range for pools, that cover the whole
- * address space.
- */
-struct uvm_constraint_range pool_full_range = { 0x0, (paddr_t)-1 };
-
-/*
* Every pool gets a unique serial number assigned to it. If this counter
* wraps, we're screwed, but we shouldn't create so many pools anyway.
*/
@@ -400,7 +394,7 @@ pool_init(struct pool *pp, size_t size, u_int align, u_int ioff, int flags,
}
/* pglistalloc/constraint parameters */
- pp->pr_crange = &pool_full_range;
+ pp->pr_crange = &no_constraint;
pp->pr_pa_nsegs = 0;
/* Insert this into the list of all pools. */