DragonFly BSD
DragonFly commits List (threaded) for 2010-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: DragonFly_RELEASE_2_8 kernel - revamp mtx_spinlock()

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 24 Oct 2010 09:38:16 -0700 (PDT)

commit c40689e9b134213e4a3e29c2548d0ec47c7dd40b
Author: Matthew Dillon <dillon@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
    * 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(-)


DragonFly BSD source repository

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]