]> www.infradead.org Git - users/jedix/linux-maple.git/commit
locking/atomic/x86: Introduce the read64_nonatomic macro to x86_32 with cx8
authorUros Bizjak <ubizjak@gmail.com>
Wed, 5 Jun 2024 18:13:15 +0000 (20:13 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Jul 2024 14:28:11 +0000 (16:28 +0200)
commit6e30a7c98a9fda2f894e970e9cd637657f39c59d
tree70618796d6d3dfe48fe0b236febfb5e60d0e3982
parent51835949dda3783d4639cfa74ce13a3c9829de00
locking/atomic/x86: Introduce the read64_nonatomic macro to x86_32 with cx8

As described in commit:

  e73c4e34a0e9 ("locking/atomic/x86: Introduce arch_atomic64_read_nonatomic() to x86_32")

the value preload before the CMPXCHG loop does not need to be atomic.

Introduce the read64_nonatomic assembly macro to load the value from a
atomic_t location in a faster non-atomic way and use it in
atomic64_cx8_32.S.

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/20240605181424.3228-1-ubizjak@gmail.com
arch/x86/lib/atomic64_cx8_32.S