freebsd-nq/sys/dev/hwpmc
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
..
hwpmc_alpha.c MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_amd.c Fix -Wundef warnings found when compiling i386 LINT, GENERIC and 2005-12-05 11:58:35 +00:00
hwpmc_amd.h MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_arm.c MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_ia64.c MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_logging.c MFP4: Support for profiling dynamically loaded objects. 2006-03-26 12:20:54 +00:00
hwpmc_mod.c Change msleep() and tsleep() to not alter the calling thread's priority 2006-04-17 18:20:38 +00:00
hwpmc_pentium.c MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_pentium.h MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_piv.c Forcibly turn off all PMCs at module unload time. 2006-03-28 14:09:21 +00:00
hwpmc_piv.h MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_powerpc.c MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_ppro.c Fix breakage introduced in rev 1.7. 2005-07-14 15:09:14 +00:00
hwpmc_ppro.h MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_sparc64.c MFP4: 2005-06-09 19:45:09 +00:00
hwpmc_x86.c Add support for Intel cpu model's 5 & 6. 2006-04-04 02:36:04 +00:00
pmc_events.h MFP4: 2005-06-09 19:45:09 +00:00