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

看板DFBSD_commit作者時間15年前 (2010/08/30 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 8f165b8c6a3e6ec3d65f6cf293a9913233dbd3bb Author: Matthew Dillon <dillon@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
文章代碼(AID): #1CUrvuTy (DFBSD_commit)