aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorUros Bizjak <[email protected]>2022-07-13 17:19:46 +0200
committerTakashi Iwai <[email protected]>2022-07-14 10:49:25 +0200
commit89422df9548002adfffb73799cebe4909cfc8902 (patch)
treed2a4f11902e5d2ab4bb8872e6208d88d18adc873 /lib/mpi/mpi-bit.c
parent281dee6707a869e0f40cac81b6b65c703192aa9d (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions