diff options
| author | Bradley Morgan <brads@mainlining.org> | 2026-10-05 12:06:58 +0000 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@kernel.org> | 2026-10-12 16:36:22 -0700 |
| commit | c1703c8772630f09e46b20eb6f3c8cc040c1a6eb (patch) | |
| tree | c522bd522d3da404429f80ff85fd2e63f85e9951 /tools/perf/scripts/python/bin | |
| parent | 887685c52e44c3a80dfc55f8545f5598badb98c9 (diff) | |
| download | linux-c1703c8772630f09e46b20eb6f3c8cc040c1a6eb.tar.gz linux-c1703c8772630f09e46b20eb6f3c8cc040c1a6eb.zip | |
ARC: Emulate two-byte cmpxchg
ARC has no two-byte atomic compare and swap, so the
arch_cmpxchg_relaxed() macro switch lets case 2 fall through to
BUILD_BUG() via default, and a two-byte cmpxchg() fails the build.
Route case 2 through the new cmpxchg_emu_u16(), which narrows the
old and new values itself, so the dispatch keeps the (uintptr_t)
casts the case 1 path already uses.
The sizeof(*(_p_)) fix that v4 folded in here landed separately
through Vineet's f050c3e61d2a, so this patch is now only the
case 2 wiring.
Signed-off-by: Bradley Morgan <brads@mainlining.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
