aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2024-04-10 08:29:34 +0200
committerIngo Molnar <mingo@kernel.org>2024-04-10 15:04:54 +0200
commite73c4e34a0e9e3dfcb4e5ee4ccd3039a7b603218 (patch)
treea760c0320424e5387a89e4b42ccaa15c9e0447ad /scripts/gdb/linux/utils.py
parentlocking/atomic/x86: Introduce arch_atomic64_try_cmpxchg() to x86_32 (diff)
downloadlinux-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