diff options
author | Keir Fraser <keir@xen.org> | 2011-03-26 08:27:41 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-03-26 08:27:41 +0000 |
commit | 1b5efa212fcff6439d91cbc04cda7d57b498d582 (patch) | |
tree | 189c800e94c68107a395aa44f67a5617e1b8967c /xen/include/xen/spinlock.h | |
parent | 138a41150a2ded3f0c96a726ba4d28a30fe59b58 (diff) | |
download | xen-1b5efa212fcff6439d91cbc04cda7d57b498d582.tar.gz xen-1b5efa212fcff6439d91cbc04cda7d57b498d582.tar.bz2 xen-1b5efa212fcff6439d91cbc04cda7d57b498d582.zip |
Remove spin_barrier_irq(). It is pointless.
Add a barrier-appropriate consistency check to spinlock.c, and add
code comments to explain why barrier operations are more relaxed than
lock-acquisition operations.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/spinlock.h')
-rw-r--r-- | xen/include/xen/spinlock.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/xen/include/xen/spinlock.h b/xen/include/xen/spinlock.h index 6ebe646c19..dd1550ca58 100644 --- a/xen/include/xen/spinlock.h +++ b/xen/include/xen/spinlock.h @@ -144,7 +144,6 @@ void _spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags); int _spin_is_locked(spinlock_t *lock); int _spin_trylock(spinlock_t *lock); void _spin_barrier(spinlock_t *lock); -void _spin_barrier_irq(spinlock_t *lock); int _spin_trylock_recursive(spinlock_t *lock); void _spin_lock_recursive(spinlock_t *lock); @@ -191,7 +190,6 @@ int _rw_is_write_locked(rwlock_t *lock); /* Ensure a lock is quiescent between two critical operations. */ #define spin_barrier(l) _spin_barrier(l) -#define spin_barrier_irq(l) _spin_barrier_irq(l) /* * spin_[un]lock_recursive(): Use these forms when the lock can (safely!) be |