diff options
| author | Peter Zijlstra <peterz@infradead.org> | 2016-04-17 19:01:27 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2016-06-16 04:48:33 -0400 |
| commit | e37837fb62f95a81bdcefa86ceea043df84937d7 (patch) | |
| tree | d2b5480c79e4d00ea2b7f41852fa938cf869b050 /kernel/locking | |
| parent | b53d6bedbe781974097fd8c38263f6cc78ff9ea7 (diff) | |
locking/atomic: Remove the deprecated atomic_{set,clear}_mask() functions
These functions have been deprecated for a while and there is only the
one user left, convert and kill.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arch@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking')
| -rw-r--r-- | kernel/locking/qspinlock_paravirt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/qspinlock_paravirt.h b/kernel/locking/qspinlock_paravirt.h index 21ede57f68b3..37649e69056c 100644 --- a/kernel/locking/qspinlock_paravirt.h +++ b/kernel/locking/qspinlock_paravirt.h | |||
| @@ -112,12 +112,12 @@ static __always_inline int trylock_clear_pending(struct qspinlock *lock) | |||
| 112 | #else /* _Q_PENDING_BITS == 8 */ | 112 | #else /* _Q_PENDING_BITS == 8 */ |
| 113 | static __always_inline void set_pending(struct qspinlock *lock) | 113 | static __always_inline void set_pending(struct qspinlock *lock) |
| 114 | { | 114 | { |
| 115 | atomic_set_mask(_Q_PENDING_VAL, &lock->val); | 115 | atomic_or(_Q_PENDING_VAL, &lock->val); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | static __always_inline void clear_pending(struct qspinlock *lock) | 118 | static __always_inline void clear_pending(struct qspinlock *lock) |
| 119 | { | 119 | { |
| 120 | atomic_clear_mask(_Q_PENDING_VAL, &lock->val); | 120 | atomic_andnot(_Q_PENDING_VAL, &lock->val); |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | static __always_inline int trylock_clear_pending(struct qspinlock *lock) | 123 | static __always_inline int trylock_clear_pending(struct qspinlock *lock) |
