summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/unistd.h
diff options
context:
space:
mode:
authorWaiman Long2015-11-10 01:09:21 +0100
committerIngo Molnar2015-11-23 10:01:58 +0100
commit64d816cba06c67eeee455b8c78ebcda349d49c24 (patch)
tree4f84909ad1dbf50bfc038dde2e72285f8e98521e /include/asm-generic/unistd.h
parentatomics: Add test for atomic operations with _relaxed variants (diff)
downloadkernel-qcow2-linux-64d816cba06c67eeee455b8c78ebcda349d49c24.tar.gz
kernel-qcow2-linux-64d816cba06c67eeee455b8c78ebcda349d49c24.tar.xz
kernel-qcow2-linux-64d816cba06c67eeee455b8c78ebcda349d49c24.zip
locking/qspinlock: Use _acquire/_release() versions of cmpxchg() & xchg()
This patch replaces the cmpxchg() and xchg() calls in the native qspinlock code with the more relaxed _acquire or _release versions of those calls to enable other architectures to adopt queued spinlocks with less memory barrier performance overhead. Signed-off-by: Waiman Long <Waiman.Long@hpe.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Douglas Hatch <doug.hatch@hpe.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Scott J Norton <scott.norton@hpe.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1447114167-47185-2-git-send-email-Waiman.Long@hpe.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/asm-generic/unistd.h')
0 files changed, 0 insertions, 0 deletions