kernel - remove spin_lock_rd() and spin_unlock_rd()
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 30 Aug 2010 06:25:42 +0000 (23:25 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 30 Aug 2010 07:01:18 +0000 (00:01 -0700)
commit8f165b8c6a3e6ec3d65f6cf293a9913233dbd3bb
tree6d05c095a2e2e847280ee8bfc2454553722f9527
parentb1ee9638a9f5b4acd0f87ea68b5599efb05768e2
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.
sys/kern/kern_ktr.c
sys/kern/kern_spinlock.c
sys/kern/lwkt_thread.c
sys/kern/usched_bsd4.c
sys/platform/pc32/isa/clock.c
sys/platform/pc64/isa/clock.c
sys/sys/globaldata.h
sys/sys/spinlock2.h