]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: helpers: Add i8/i16 atomic xchg_relaxed helpers
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Tue, 23 Dec 2025 06:21:40 +0000 (15:21 +0900)
committerBoqun Feng <boqun.feng@gmail.com>
Fri, 9 Jan 2026 11:01:41 +0000 (19:01 +0800)
commit910cbddc416cc30d83966baf378f44e59f3dc5d7
tree6db491d9610a032ed58e14ec612fec428f6544e4
parent1bfca1e7e845a55fa82046727666f713d24ebdad
rust: helpers: Add i8/i16 atomic xchg_relaxed helpers

Add i8/i16 atomic xchg_relaxed helpers that call xchg_relaxed() macro
implementing atomic xchg_relaxed using architecture-specific
instructions.

[boqun: Use xchg_relaxed() instead of raw_xchg_relaxed()]

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20251223062140.938325-5-fujita.tomonori@gmail.com
rust/helpers/atomic_ext.c