Skip to content

Commit 3bea9ad

Browse files
wildea01ingomolnar
authored andcommitted
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: Waiman Long <longman@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: boqun.feng@gmail.com Cc: linux-arm-kernel@lists.infradead.org Cc: paulmck@linux.vnet.ibm.com Link: http://lkml.kernel.org/r/20180427101619.GB21705@arm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent baa8c6d commit 3bea9ad

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎kernel/locking/qspinlock_paravirt.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,6 @@ static __always_inline void set_pending(struct qspinlock *lock)
130130
atomic_or(_Q_PENDING_VAL, &lock->val);
131131
}
132132

133-
static __always_inline void clear_pending(struct qspinlock *lock)
134-
{
135-
atomic_andnot(_Q_PENDING_VAL, &lock->val);
136-
}
137-
138133
static __always_inline int trylock_clear_pending(struct qspinlock *lock)
139134
{
140135
int val = atomic_read(&lock->val);

0 commit comments

Comments
 (0)