git: kernel - remove spin_lock_rd() and spin_unlock_rd()

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 30 00:08:27 PDT 2010


commit 8f165b8c6a3e6ec3d65f6cf293a9913233dbd3bb
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Aug 29 23:25:42 2010 -0700

    kernel - remove spin_lock_rd() and spin_unlock_rd()
    
    * Remove shared spinlocks entirely.  We only have exclusive spinlocks
      now.
    
    * Strip out the exclusive/shared contention handling code.
    
    * Slightly rework the initial exponential backoff and test.  Do the
      atomic swap after the exponential backoff instead of before so
      we do not add a superfluous backoff after actually acquiring
      the spinlock.

Summary of changes:
 sys/kern/kern_ktr.c           |    6 --
 sys/kern/kern_spinlock.c      |  134 ++++-------------------------------------
 sys/kern/lwkt_thread.c        |    4 -
 sys/kern/usched_bsd4.c        |    1 -
 sys/platform/pc32/isa/clock.c |    3 +-
 sys/platform/pc64/isa/clock.c |    3 +-
 sys/sys/globaldata.h          |    2 +-
 sys/sys/spinlock2.h           |   85 ++------------------------
 8 files changed, 20 insertions(+), 218 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8f165b8c6a3e6ec3d65f6cf293a9913233dbd3bb


-- 
DragonFly BSD source repository





More information about the Commits mailing list