aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2018-08-26 12:51:46 +0000
committerMark Murray <markm@FreeBSD.org>2018-08-26 12:51:46 +0000
commit19fa89e93888ebfe79d06c7b831bcd39001dce63 (patch)
tree8f0f5d7e4726f1bfb1272ba4d7410195426135e1 /sys/kern/kern_intr.c
parenta1b042f79d71a3a444aef1281fa61ccd45064c6a (diff)
downloadsrc-19fa89e93888ebfe79d06c7b831bcd39001dce63.tar.gz
src-19fa89e93888ebfe79d06c7b831bcd39001dce63.zip
Remove the Yarrow PRNG algorithm option in accordance with due notice
given in random(4). This includes updating of the relevant man pages, and no-longer-used harvesting parameters. Ensure that the pseudo-unit-test still does something useful, now also with the "other" algorithm instead of Yarrow. PR: 230870 Reviewed by: cem Approved by: so(delphij,gtetlow) Approved by: re(marius) Differential Revision: https://reviews.freebsd.org/D16898
Notes
Notes: svn path=/head/; revision=338324
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 2944c89f5825..266698676c1d 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -868,7 +868,7 @@ intr_event_schedule_thread(struct intr_event *ie)
if (ie->ie_flags & IE_ENTROPY) {
entropy.event = (uintptr_t)ie;
entropy.td = ctd;
- random_harvest_queue(&entropy, sizeof(entropy), 2, RANDOM_INTERRUPT);
+ random_harvest_queue(&entropy, sizeof(entropy), RANDOM_INTERRUPT);
}
KASSERT(td->td_proc != NULL, ("ithread %s has no process", ie->ie_name));
@@ -958,7 +958,7 @@ swi_sched(void *cookie, int flags)
entropy.event = (uintptr_t)ih;
entropy.td = curthread;
- random_harvest_queue(&entropy, sizeof(entropy), 1, RANDOM_SWI);
+ random_harvest_queue(&entropy, sizeof(entropy), RANDOM_SWI);
/*
* Set ih_need for this handler so that if the ithread is already