diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-02-06 07:15:57 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-02-06 07:15:57 +0000 |
commit | f3b95d53b4db45d7362b2c3810a23024e7b1983f (patch) | |
tree | 5ba28e1c9f253ac5c37768cdec5b8a0f5fb6071d /sys/arch | |
parent | 32e9d517e737c29e8782a158124570f3508ca29a (diff) |
Change the pmap_pmap_pool ipl from IPL_VM to IPL_NONE. Matches the
other archs.
ok patrick@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/arm64/pmap.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/arm64/arm64/pmap.c b/sys/arch/arm64/arm64/pmap.c index d2c2a1b94f0..afcc15a6d35 100644 --- a/sys/arch/arm64/arm64/pmap.c +++ b/sys/arch/arm64/arm64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.16 2017/02/05 13:08:03 patrick Exp $ */ +/* $OpenBSD: pmap.c,v 1.17 2017/02/06 07:15:56 jsg Exp $ */ /* * Copyright (c) 2008-2009,2014-2016 Dale Rahn <drahn@dalerahn.com> * @@ -976,11 +976,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); if (pmap_vp_poolcache == 0) { pool_setlowat(&pmap_vp_pool, 20); @@ -1008,7 +1005,6 @@ void pmap_destroy(pmap_t pm) { int refs; - int s; /* simple_lock(&pmap->pm_obj.vmobjlock); */ refs = --pm->pm_refs; @@ -1023,9 +1019,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); } /* @@ -1634,7 +1628,7 @@ pmap_init() tcr |= TCR_T0SZ(64 - USER_SPACE_BITS); WRITE_SPECIALREG(tcr_el1, tcr); - pool_init(&pmap_pmap_pool, sizeof(struct pmap), 0, IPL_VM, 0, + pool_init(&pmap_pmap_pool, sizeof(struct pmap), 0, IPL_NONE, 0, "pmap", NULL); pool_setlowat(&pmap_pmap_pool, 2); pool_init(&pmap_pted_pool, sizeof(struct pte_desc), 0, IPL_VM, 0, |