summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-04-26 11:34:26 +0100
committerIngo Molnar <mingo@kernel.org>2018-04-27 09:48:52 +0200
commitae75d9089ff7095d1d1a12c3cd86b21d3eaf3b15 (patch)
treea20982c45c6d23b63e8f7debae5946b4f8604c09 /sound
parent9d4646d14d51d62b967a12452c30ea7edf8dd8fa (diff)
downloadlinux-ae75d9089ff7095d1d1a12c3cd86b21d3eaf3b15.tar.gz
linux-ae75d9089ff7095d1d1a12c3cd86b21d3eaf3b15.tar.bz2
linux-ae75d9089ff7095d1d1a12c3cd86b21d3eaf3b15.zip
locking/qspinlock: Use try_cmpxchg() instead of cmpxchg() when locking
When reaching the head of an uncontended queue on the qspinlock slow-path, using a try_cmpxchg() instead of a cmpxchg() operation to transition the lock work to _Q_LOCKED_VAL generates slightly better code for x86 and pretty much identical code for arm64. Reported-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Will Deacon <will.deacon@arm.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Waiman Long <longman@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.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/1524738868-31318-13-git-send-email-will.deacon@arm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions