associated pool calls in splvm()/splx() is unnecessary and confusing.
ok deraadt@, drahn@
-/* $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.
pmap_create()
{
pmap_t pmap;
- int s;
- s = splvm();
pmap = pool_get(&pmap_pmap_pool, PR_WAITOK);
- splx(s);
pmap_pinit(pmap);
return (pmap);
}
pmap_destroy(pmap_t pm)
{
int refs;
- int s;
/* simple_lock(&pmap->pm_obj.vmobjlock); */
refs = --pm->pm_refs;
* reference count is zero, free pmap resources and free pmap.
*/
pmap_release(pm);
- s = splvm();
pool_put(&pmap_pmap_pool, pm);
- splx(s);
}
/*