diff options
author | jhb <jhb@FreeBSD.org> | 2004-11-05 20:15:06 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-11-05 20:15:06 +0000 |
commit | 753a25978f4801f247f7f2b22abb30433cee558b (patch) | |
tree | 447e8e01d9d1165fddeef0587a39157d5b8d3a9f /sys/dev/random | |
parent | 108b7172d74a172ba8fdda49600beb48d7c57038 (diff) | |
download | FreeBSD-src-753a25978f4801f247f7f2b22abb30433cee558b.zip FreeBSD-src-753a25978f4801f247f7f2b22abb30433cee558b.tar.gz |
Don't change the priority to PUSER when sleeping, just keep the current
priority.
Diffstat (limited to 'sys/dev/random')
-rw-r--r-- | sys/dev/random/randomdev_soft.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/random/randomdev_soft.c b/sys/dev/random/randomdev_soft.c index e44f1b6..ebc6ba6 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); } |