kernel - make nrandom helper thread mpsafe
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 29 Aug 2010 00:32:52 +0000 (17:32 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 29 Aug 2010 00:32:52 +0000 (17:32 -0700)
* The random number generator helper thread no longer holds the mplock.

sys/kern/kern_nrandom.c

index 5103885..55396a2 100644 (file)
@@ -578,8 +578,6 @@ rand_thread_loop(void *dummy)
 {
        int count;
 
-       get_mplock();
-
        for (;;) {
                NANOUP_EVENT ();
                spin_lock_wr(&rand_spin);