From 6ac27fe1e672525584a599491321f250481bceef Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 5 Nov 2004 20:15:06 +0000 Subject: [PATCH] Don't change the priority to PUSER when sleeping, just keep the current priority. --- sys/dev/random/randomdev_soft.c | 6 ++++-- 1 file 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); }