commit | 2f6560e652dfdbdb59df28b45a3458bf36d3c580 | [log] [tgz] |
---|---|---|
author | Nicholas Piggin <npiggin@gmail.com> | Fri Jul 24 23:14:22 2020 +1000 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Mon Jul 27 00:01:29 2020 +1000 |
tree | eb923dd64c883cf1cbd977111baf6a146ad55e23 | |
parent | 20c0e8269e9d515e677670902c7e1cc0209d6ad9 [diff] |
powerpc/qspinlock: Optimised atomic_try_cmpxchg_lock() that adds the lock hint This brings the behaviour of the uncontended fast path back to roughly equivalent to simple spinlocks -- a single atomic op with lock hint. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Acked-by: Waiman Long <longman@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200724131423.1362108-6-npiggin@gmail.com