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/crypto | |
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/crypto')
-rw-r--r-- | sys/crypto/crypto.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c index 3c1b21c88b8..b8f2e3a48ea 100644 --- a/sys/crypto/crypto.c +++ b/sys/crypto/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.76 2016/04/18 21:05:55 kettenis Exp $ */ +/* $OpenBSD: crypto.c,v 1.77 2016/09/15 02:00:17 dlg Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -513,12 +513,10 @@ crypto_init(void) crypto_taskq = taskq_create("crypto", 1, IPL_VM, 0); crypto_taskq_mpsafe = taskq_create("crynlk", 1, IPL_VM|IPL_MPSAFE, 0); - pool_init(&cryptop_pool, sizeof(struct cryptop), 0, 0, - 0, "cryptop", NULL); - pool_setipl(&cryptop_pool, IPL_VM); - pool_init(&cryptodesc_pool, sizeof(struct cryptodesc), 0, 0, - 0, "cryptodesc", NULL); - pool_setipl(&cryptodesc_pool, IPL_VM); + pool_init(&cryptop_pool, sizeof(struct cryptop), 0, IPL_VM, 0, + "cryptop", NULL); + pool_init(&cryptodesc_pool, sizeof(struct cryptodesc), 0, IPL_VM, 0, + "cryptodesc", NULL); } /* |