From b501fa4f2281f4df0310946dc43a8972815b43df Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 16 Jul 2010 06:22:31 +0000 Subject: [PATCH] We never create or destroy pmaps from interrupt context, so wrapping the associated pool calls in splvm()/splx() is unnecessary and confusing. ok deraadt@, drahn@ --- sys/arch/powerpc/powerpc/pmap.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c index 94b49aa9d3f..a57ab10232b 100644 --- a/sys/arch/powerpc/powerpc/pmap.c +++ b/sys/arch/powerpc/powerpc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.115 2010/06/26 23:24:44 guenther Exp $ */ +/* $OpenBSD: pmap.c,v 1.116 2010/07/16 06:22:31 kettenis Exp $ */ /* * Copyright (c) 2001, 2002, 2007 Dale Rahn. @@ -1301,11 +1301,8 @@ pmap_t pmap_create() { pmap_t pmap; - int s; - s = splvm(); pmap = pool_get(&pmap_pmap_pool, PR_WAITOK); - splx(s); pmap_pinit(pmap); return (pmap); } @@ -1329,7 +1326,6 @@ void pmap_destroy(pmap_t pm) { int refs; - int s; /* simple_lock(&pmap->pm_obj.vmobjlock); */ refs = --pm->pm_refs; @@ -1341,9 +1337,7 @@ pmap_destroy(pmap_t pm) * reference count is zero, free pmap resources and free pmap. */ pmap_release(pm); - s = splvm(); pool_put(&pmap_pmap_pool, pm); - splx(s); } /* -- 2.20.1