diff options
author | 2022-12-21 20:35:40 +0100 | |
---|---|---|
committer | 2023-01-08 12:37:49 +0100 | |
commit | 4e1da8fe031303599e78f88e0dad9f44272e4f99 (patch) | |
tree | be4f00de082d570ac06a21010528c2150bde5670 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Linux 6.2-rc1 (diff) | |
download | wireguard-linux-4e1da8fe031303599e78f88e0dad9f44272e4f99.tar.xz wireguard-linux-4e1da8fe031303599e78f88e0dad9f44272e4f99.zip |
posix_acl: Use try_cmpxchg in get_acl
Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old
in get_acl. 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>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions