]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/cmpxchg: Use arch_cmpxchg() instead of __atomic_cmpxchg()
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 6 Nov 2024 10:03:12 +0000 (11:03 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 12 Nov 2024 13:01:28 +0000 (14:01 +0100)
commitf99d670e31b960562fcd34587e9f824b6f05a144
tree6b8807801253375661630b619a3950d9b1a31b91
parentffc5eac2cda81eec85b75338212d3098f7daef49
s390/cmpxchg: Use arch_cmpxchg() instead of __atomic_cmpxchg()

Use arch_cmpxchg() instead of __atomic_cmpxchg() for the
arch_atomic_cmpxchg() implementations. arch_cmpxchg() generates
the same code and doesn't need a cast like it is required for
arch_atomic64_cmpxchg().

Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/atomic.h