cvs commit: src/sys/conf files src/sys/kern kern_mutex.c kern_sx.c
subr_lock.c subr_turnstile.c subr_witness.c src/sys/sys lock.h
mutex.h
John Baldwin
jhb at FreeBSD.org
Tue Aug 1 17:40:14 UTC 2006
jhb 2006-08-01 17:40:13 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sys/conf files
sys/kern kern_mutex.c kern_sx.c subr_turnstile.c
subr_witness.c
sys/sys lock.h mutex.h
Added files: (Branch: RELENG_6)
sys/kern subr_lock.c
Log:
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.
Revision Changes Path
1.1031.2.34 +1 -0 src/sys/conf/files
1.154.2.6 +31 -49 src/sys/kern/kern_mutex.c
1.25.2.2 +3 -16 src/sys/kern/kern_sx.c
1.4.2.1 +100 -0 src/sys/kern/subr_lock.c (new)
1.152.2.3 +1 -0 src/sys/kern/subr_turnstile.c
1.195.2.10 +48 -38 src/sys/kern/subr_witness.c
1.52.2.2 +12 -5 src/sys/sys/lock.h
1.79.2.3 +1 -1 src/sys/sys/mutex.h
More information about the cvs-src
mailing list