diff options
author | 2010-06-29 20:39:27 +0000 | |
---|---|---|
committer | 2010-06-29 20:39:27 +0000 | |
commit | a072d974f542f9b3160fd2b76aa9adb329a0e109 (patch) | |
tree | 07020ca79ee0906f31098c3199af50ea51e4488a /sys/kern/subr_pool.c | |
parent | Remove COMPAT_HPUX. No one wanted to support it and its fewmets were (diff) | |
download | wireguard-openbsd-a072d974f542f9b3160fd2b76aa9adb329a0e109.tar.xz wireguard-openbsd-a072d974f542f9b3160fd2b76aa9adb329a0e109.zip |
Add a no_constraint uvm_constraint_range; use it in the pool code.
ok tedu@, beck@, oga@
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r-- | sys/kern/subr_pool.c | 10 |
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. */ |