diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2024-03-20 09:30:40 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-03-20 12:29:02 +0100 |
commit | 0539084639f3835c8d0b798e6659ec14a266b4f1 (patch) | |
tree | c66aeefb14e9a55ffafde12f48f0873e1c1c9856 /include/crypto/ecdh.h | |
parent | 4ae3dc83b047d51485cce1a72be277a110d77c91 (diff) | |
download | linux-stable-0539084639f3835c8d0b798e6659ec14a266b4f1.tar.gz linux-stable-0539084639f3835c8d0b798e6659ec14a266b4f1.tar.bz2 linux-stable-0539084639f3835c8d0b798e6659ec14a266b4f1.zip |
x86/percpu: Convert this_percpu_xchg_op() from asm() to C code, to generate better code
Rewrite percpu_xchg_op() using generic percpu primitives instead
of using asm. The new implementation is similar to local_xchg() and
allows the compiler to perform various optimizations: e.g. the
compiler is able to create fast path through the loop, according
to likely/unlikely annotations in percpu_try_cmpxchg_op().
No functional changes intended.
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20240320083127.493250-1-ubizjak@gmail.com
Diffstat (limited to 'include/crypto/ecdh.h')
0 files changed, 0 insertions, 0 deletions