diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2022-12-21 22:35:40 +0300 |
---|---|---|
committer | Christian Brauner (Microsoft) <brauner@kernel.org> | 2023-01-08 14:37:49 +0300 |
commit | 4e1da8fe031303599e78f88e0dad9f44272e4f99 (patch) | |
tree | be4f00de082d570ac06a21010528c2150bde5670 /tools/perf/scripts/python/libxed.py | |
parent | 1b929c02afd37871d5afb9d498426f83432e71c2 (diff) | |
download | linux-4e1da8fe031303599e78f88e0dad9f44272e4f99.tar.xz |
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/libxed.py')
0 files changed, 0 insertions, 0 deletions