summaryrefslogtreecommitdiff
path: root/sys/dev/random/randomdev_soft.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2004-11-05 20:15:06 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2004-11-05 20:15:06 +0000
commit6ac27fe1e672525584a599491321f250481bceef (patch)
tree447e8e01d9d1165fddeef0587a39157d5b8d3a9f /sys/dev/random/randomdev_soft.c
parentbd366a3cd433a10147539b25c4336bcf5be23d87 (diff)
Notes
Diffstat (limited to 'sys/dev/random/randomdev_soft.c')
-rw-r--r--sys/dev/random/randomdev_soft.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/random/randomdev_soft.c b/sys/dev/random/randomdev_soft.c
index e44f1b6682a0..ebc6ba6d3f20 100644
--- a/sys/dev/random/randomdev_soft.c
+++ b/sys/dev/random/randomdev_soft.c
@@ -208,7 +208,8 @@ random_yarrow_deinit(void)
* Command the hash/reseed thread to end and wait for it to finish
*/
random_kthread_control = -1;
- tsleep((void *)&random_kthread_control, PUSER, "term", 0);
+ tsleep((void *)&random_kthread_control, curthread->td_priority, "term",
+ 0);
/* Destroy the harvest fifos */
while (!STAILQ_EMPTY(&emptyfifo.head)) {
@@ -281,7 +282,8 @@ random_kthread(void *arg __unused)
/* Found nothing, so don't belabour the issue */
if (!active)
- tsleep(&harvestfifo, PUSER, "-", hz / 10);
+ tsleep(&harvestfifo, curthread->td_priority, "-",
+ hz / 10);
}