freebsd-skq/sys/dev/hwpmc
Joseph Koshy 382d30cdd8 Fix witness(4) warnings about mutex use.
Group mutexes used in hwpmc(4) into 3 "types" in the sense of
witness(4):

 - leaf spin mutexes---only one of these should be held at a time,
   so these mutexes are specified as belonging to a single witness
   type "pmc-leaf".

 - `struct pmc_owner' descriptors are protected by a spin mutex of
   witness type "pmc-owner-proc".  Since we call wakeup_one() while
   holding these mutexes, the witness type of these mutexes needs
   to dominate that of "sleepq chain" mutexes.

 - logger threads use a sleep mutex, of type "pmc-sleep".

Submitted by:	wkoszek (earlier patch)
2007-04-19 08:02:51 +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 Fix witness(4) warnings about mutex use. 2007-04-19 08:02:51 +00:00
hwpmc_mod.c Fix witness(4) warnings about mutex use. 2007-04-19 08:02:51 +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 Fix witness(4) warnings about mutex use. 2007-04-19 08:02:51 +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