summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-07-16 06:22:32 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-07-16 06:22:32 +0000
commit0cfce9c630ab2f0c32e7e5c9bd84912a95701a8a (patch)
tree595c93a3c7e081363f44be412c40677c2c424470
parentfc1c1cde780c39aa7b4d873be015742fb5f4527b (diff)
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@
-rw-r--r--sys/arch/powerpc/powerpc/pmap.c8
1 files changed, 1 insertions, 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);
}
/*