diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-15 02:00:19 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-15 02:00:19 +0000 |
commit | 9d8236625502d9aebd87ee4b8aa759eb7dd062ae (patch) | |
tree | 608f67fdaff3caceaeb03f449b57d21037a3fe79 /sys/arch/hppa | |
parent | 2470899b803a7fb5d135883edd5ddd82d6a592c7 (diff) |
all pools have their ipl set via pool_setipl, so fold it into pool_init.
the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the ipl
will be set on init we no longer need pool_setipl.
most of these changes have been done with coccinelle using the spatch
below. cocci sucks at formatting code though, so i fixed that by hand.
the manpage and subr_pool.c bits i did myself.
ok tedu@ jmatthew@
@ipl@
expression pp;
expression ipl;
expression s, a, o, f, m, p;
@@
-pool_init(pp, s, a, o, f, m, p);
-pool_setipl(pp, ipl);
+pool_init(pp, s, a, ipl, f, m, p);
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/machdep.c | 5 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/pmap.c | 10 |
2 files changed, 6 insertions, 9 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 75105b912a3..9e0e0e70e02 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.245 2016/05/21 00:56:43 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.246 2016/09/15 02:00:17 dlg Exp $ */ /* * Copyright (c) 1999-2003 Michael Shalayeff @@ -390,9 +390,8 @@ hppa_init(paddr_t start) fdcacheall(); proc0paddr->u_pcb.pcb_fpstate = &proc0fpstate; - pool_init(&hppa_fppl, sizeof(struct hppa_fpstate), 16, 0, 0, + pool_init(&hppa_fppl, sizeof(struct hppa_fpstate), 16, IPL_NONE, 0, "hppafp", NULL); - pool_setipl(&hppa_fppl, IPL_NONE); } void diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c index 0e0146026ba..f85016f34c9 100644 --- a/sys/arch/hppa/hppa/pmap.c +++ b/sys/arch/hppa/hppa/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.169 2016/06/07 06:23:19 dlg Exp $ */ +/* $OpenBSD: pmap.c,v 1.170 2016/09/15 02:00:17 dlg Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -631,12 +631,10 @@ pmap_init(void) { DPRINTF(PDB_FOLLOW|PDB_INIT, ("pmap_init()\n")); - pool_init(&pmap_pmap_pool, sizeof(struct pmap), 0, 0, 0, + pool_init(&pmap_pmap_pool, sizeof(struct pmap), 0, IPL_NONE, 0, "pmappl", NULL); - pool_setipl(&pmap_pmap_pool, IPL_NONE); - pool_init(&pmap_pv_pool, sizeof(struct pv_entry), 0, 0, 0, "pmappv", - NULL); - pool_setipl(&pmap_pv_pool, IPL_VM); + pool_init(&pmap_pv_pool, sizeof(struct pv_entry), 0, IPL_VM, 0, + "pmappv", NULL); pool_setlowat(&pmap_pv_pool, pmap_pvlowat); pool_sethiwat(&pmap_pv_pool, pmap_pvlowat * 32); |