diff options
author | 2024-04-10 08:29:34 +0200 | |
---|---|---|
committer | 2024-04-10 15:04:54 +0200 | |
commit | e73c4e34a0e9e3dfcb4e5ee4ccd3039a7b603218 (patch) | |
tree | a760c0320424e5387a89e4b42ccaa15c9e0447ad /scripts/gdb/linux/utils.py | |
parent | locking/atomic/x86: Introduce arch_atomic64_try_cmpxchg() to x86_32 (diff) | |
download | linux-rng-e73c4e34a0e9e3dfcb4e5ee4ccd3039a7b603218.tar.xz linux-rng-e73c4e34a0e9e3dfcb4e5ee4ccd3039a7b603218.zip |
locking/atomic/x86: Introduce arch_atomic64_read_nonatomic() to x86_32
Introduce arch_atomic64_read_nonatomic() for 32-bit targets to load
the value from atomic64_t location in a non-atomic way. This
function is intended to be used in cases where a subsequent atomic
operation will handle the torn value, and can be used to prime the
first iteration of unconditional try_cmpxchg() loops.
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20240410062957.322614-2-ubizjak@gmail.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions