diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-12-11 06:20:32 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-12-11 06:20:32 +0000 |
commit | 73d916d4f6e56a740725e2125bd32666181f1c20 (patch) | |
tree | 0f62e41d03c89b8ef7fb7e4b4d1f90a095feaabe | |
parent | 2902d49d711b28aa8dac7e1340bb32130063fd2d (diff) |
- Call uvm_km_alloc_poolpage1 directly, no need to go through the macro.
- uvm_km_alloc_poolpage1 has its own spl protection, no need to add
additional layer around it.
-rw-r--r-- | sys/kern/subr_pool.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index ac9842d6df9..4005a8703ff 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.36 2002/10/27 21:31:56 art Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.37 2002/12/11 06:20:31 art Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -2031,23 +2031,16 @@ void * pool_page_alloc(struct pool *pp, int flags) { boolean_t waitok = (flags & PR_WAITOK) ? TRUE : FALSE; - void *ret; - int s; - s = splvm(); - ret = (void *)uvm_km_alloc_poolpage(waitok); - splx(s); - return (ret); + return ((void *)uvm_km_alloc_poolpage1(kmem_map, uvmexp.kmem_object, + waitok)); } void pool_page_free(struct pool *pp, void *v) { - int s; - s = splvm(); - uvm_km_free_poolpage((vaddr_t)v); - splx(s); + uvm_km_free_poolpage1(kmem_map, (vaddr_t)v); } void * |