From 73d916d4f6e56a740725e2125bd32666181f1c20 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Wed, 11 Dec 2002 06:20:32 +0000 Subject: - 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. --- sys/kern/subr_pool.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'sys') 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 * -- cgit v1.2.3