freebsd-dev/sys/dev/random
John Baldwin 0f180a7cce Change msleep() and tsleep() to not alter the calling thread's priority
if the specified priority is zero.  This avoids a race where the calling
thread could read a snapshot of it's current priority, then a different
thread could change the first thread's priority, then the original thread
would call sched_prio() inside msleep() undoing the change made by the
second thread.  I used a priority of zero as no thread that calls msleep()
or tsleep() should be specifying a priority of zero anyway.

The various places that passed 'curthread->td_priority' or some variant
as the priority now pass 0.
2006-04-17 18:20:38 +00:00
..
harvest.c Annotate that get_cyclecount() can be expensive on some platforms, 2004-10-18 19:29:13 +00:00
hash.c stop including rijndael-api-fst.h from rijndael.h. 2005-03-11 15:42:51 +00:00
hash.h Reorganise the entropy device so that high-yield entropy sources 2004-04-09 15:47:10 +00:00
nehemiah.c Remove GIANT from device random. 2005-12-20 21:41:52 +00:00
nehemiah.h Reorganise the entropy device so that high-yield entropy sources 2004-04-09 15:47:10 +00:00
probe.c malloc.h relies on param.h for a definition of MAXCPU. I guess that there is 2005-05-30 05:01:44 +00:00
randomdev_soft.c Change msleep() and tsleep() to not alter the calling thread's priority 2006-04-17 18:20:38 +00:00
randomdev_soft.h Remove GIANT from device random. 2005-12-20 21:41:52 +00:00
randomdev.c Remove GIANT from device random. 2005-12-20 21:41:52 +00:00
randomdev.h Remove GIANT from device random. 2005-12-20 21:41:52 +00:00
yarrow.c Remove GIANT from device random. 2005-12-20 21:41:52 +00:00
yarrow.h Reorganise the entropy device so that high-yield entropy sources 2004-04-09 15:47:10 +00:00