Add spin_pdr_trylock
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 8 Sep 2016 17:52:44 +0000 (13:52 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 16 Sep 2016 18:35:09 +0000 (14:35 -0400)
commit183980f10906aaad88e6267e6fd630f3aa2dd5d0
tree7e420ba637cd9de4bbba695256d5e43e7ba50a0b
parent6951efbc295e02d795fabb4b91c9de332a0d7dae
Add spin_pdr_trylock

Note I didn't use trylock for the spin_pdr_lock implementation.  If we know
we want to lock, no matter what, then we don't want to bother disabling and
enabling notifs repeatedly.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/include/parlib/spinlock.h
user/parlib/spinlock.c