|
@@ -130,11 +130,6 @@ static __always_inline void set_pending(struct qspinlock *lock)
|
|
atomic_or(_Q_PENDING_VAL, &lock->val);
|
|
atomic_or(_Q_PENDING_VAL, &lock->val);
|
|
}
|
|
}
|
|
|
|
|
|
-static __always_inline void clear_pending(struct qspinlock *lock)
|
|
|
|
-{
|
|
|
|
- atomic_andnot(_Q_PENDING_VAL, &lock->val);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static __always_inline int trylock_clear_pending(struct qspinlock *lock)
|
|
static __always_inline int trylock_clear_pending(struct qspinlock *lock)
|
|
{
|
|
{
|
|
int val = atomic_read(&lock->val);
|
|
int val = atomic_read(&lock->val);
|