Don't change the priority to PUSER when sleeping, just keep the current

priority.
This commit is contained in:
John Baldwin 2004-11-05 20:15:06 +00:00
parent bd366a3cd4
commit 6ac27fe1e6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137276

View file

@ -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);
}