Commit 3bea9adc authored by Will Deacon's avatar Will Deacon Committed by Ingo Molnar

locking/qspinlock: Remove duplicate clear_pending() function from PV code

The native clear_pending() function is identical to the PV version, so the
latter can simply be removed.

This fixes the build for systems with >= 16K CPUs using the PV lock implementation.
Reported-by: default avatarWaiman Long <>
Signed-off-by: default avatarWill Deacon <>
Cc: Linus Torvalds <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Link: default avatarIngo Molnar <>
parent baa8c6dd
......@@ -130,11 +130,6 @@ static __always_inline void set_pending(struct qspinlock *lock)
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)
int val = atomic_read(&lock->val);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment