git: kernel - revamp mtx_spinlock()
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Oct 19 23:28:31 PDT 2010
commit 38c3ee9b0b1222fcb84c6fe9da02ab2ff31e3faf
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Oct 19 23:19:29 2010 -0700
kernel - revamp mtx_spinlock()
* Revamp mtx_spinlock(), add mtx_spinlock_try(), and add mtx_spinunlock().
* Enter a proper hard critical section when using mtx_spinlock*(),
just like the normal spinlock() code does.
The difference is that mtx spinlocks have a ref count and thus are
reentrant.
* mtx_spinlock*() is not used in the code yet. A followup commit will
begin using it for the syscons lock.
Summary of changes:
sys/kern/kern_mutex.c | 50 +++++++++++++++++++++++++++++-
sys/sys/mutex.h | 4 +-
sys/sys/mutex2.h | 81 +++++++++++++++++++++++++++++++++++++-----------
3 files changed, 113 insertions(+), 22 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/38c3ee9b0b1222fcb84c6fe9da02ab2ff31e3faf
--
DragonFly BSD source repository
More information about the Commits
mailing list