Don't change the priority to PUSER when sleeping, just keep the current
priority.
This commit is contained in:
parent
bd366a3cd4
commit
6ac27fe1e6
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user