diff options
author | 2024-03-20 09:30:40 +0100 | |
---|---|---|
committer | 2024-03-20 12:29:02 +0100 | |
commit | 0539084639f3835c8d0b798e6659ec14a266b4f1 (patch) | |
tree | c66aeefb14e9a55ffafde12f48f0873e1c1c9856 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'irq-urgent-2024-03-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (diff) | |
download | wireguard-linux-0539084639f3835c8d0b798e6659ec14a266b4f1.tar.xz wireguard-linux-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions