From: Matthew Dillon Date: Sun, 29 Aug 2010 00:32:52 +0000 (-0700) Subject: kernel - make nrandom helper thread mpsafe X-Git-Tag: v2.9.0~367 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/391a72a2ac2111e940c894e0f1d9a2d847daaac3 kernel - make nrandom helper thread mpsafe * The random number generator helper thread no longer holds the mplock. --- diff --git a/sys/kern/kern_nrandom.c b/sys/kern/kern_nrandom.c index 5103885c4c..55396a28ea 100644 --- a/sys/kern/kern_nrandom.c +++ b/sys/kern/kern_nrandom.c @@ -578,8 +578,6 @@ rand_thread_loop(void *dummy) { int count; - get_mplock(); - for (;;) { NANOUP_EVENT (); spin_lock_wr(&rand_spin);