Commit 075703d7 authored by Will Deacon's avatar Will Deacon Committed by Greg Kroah-Hartman
Browse files

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

commit 3bea9adc


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 <>

Signed-off-by: default avatarIngo Molnar <>
Signed-off-by: default avatarSebastian Andrzej Siewior <>
Signed-off-by: default avatarSasha Levin <>
parent 7a617996
......@@ -106,11 +106,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