summaryrefslogtreecommitdiff
path: root/sound/pci/hda/Kconfig
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2022-07-13 18:19:46 +0300
committerTakashi Iwai <tiwai@suse.de>2022-07-14 11:49:25 +0300
commit89422df9548002adfffb73799cebe4909cfc8902 (patch)
treed2a4f11902e5d2ab4bb8872e6208d88d18adc873 /sound/pci/hda/Kconfig
parent281dee6707a869e0f40cac81b6b65c703192aa9d (diff)
downloadlinux-89422df9548002adfffb73799cebe4909cfc8902.tar.xz
ALSA: usb-audio: Use atomic_try_cmpxchg in ep_state_update
Use atomic_try_cmpxchg instead of atomic_cmpxchg (*ptr, old, new) == old in ep_state_update. x86 CMPXCHG instruction returns success in ZF flag, so this change saves a compare after cmpxchg (and related move instruction in front of cmpxchg). No functional change intended. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Link: https://lore.kernel.org/r/20220713151946.4743-1-ubizjak@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/Kconfig')
0 files changed, 0 insertions, 0 deletions