diff options
author | Uros Bizjak <[email protected]> | 2024-03-20 09:30:40 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2024-03-20 12:29:02 +0100 |
commit | 0539084639f3835c8d0b798e6659ec14a266b4f1 (patch) | |
tree | c66aeefb14e9a55ffafde12f48f0873e1c1c9856 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4ae3dc83b047d51485cce1a72be277a110d77c91 (diff) |
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions