]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: Sync up with HEAD in some of the locking primitive details:
authorjhb <jhb@FreeBSD.org>
Tue, 1 Aug 2006 17:40:13 +0000 (17:40 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 1 Aug 2006 17:40:13 +0000 (17:40 +0000)
commit12a43179a55a6d1b2297af3f5b171d0010616060
tree8a725bcc494e6f1fcbcbc2badaf28d07d6c5cf86
parentf963d2d88cdbdf56e9fc6e8bcab54e0d756359fa
MFC: Sync up with HEAD in some of the locking primitive details:
- Teach WITNESS_SAVE() and WITNESS_RESTORE() to work with spin locks instead
  of only sleep locks.
- Do the extra step required when destroying a locked spin mutex.
- Initialize thread0.td_contested in init_turnstiles() rather than
  mutex_init().
- Add LOCK_CLASS() macro and sync with HEAD on its usage.  For RELENG_6
  this just maps to lock->lo_class.  (In HEAD lo_class was removed an array
  index was encoded into lo_flags instead.)
- Add subr_lock.c including adding lock_init() and lock_destroy() functions
  as we as moving the 'show lock' command into this file from kern_mutex.c.
sys/conf/files
sys/kern/kern_mutex.c
sys/kern/kern_sx.c
sys/kern/subr_lock.c
sys/kern/subr_turnstile.c
sys/kern/subr_witness.c
sys/sys/lock.h
sys/sys/mutex.h