]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
arm64: Avoid redundant type conversions in xchg() and cmpxchg()
authorWill Deacon <will.deacon@arm.com>
Thu, 13 Sep 2018 12:30:45 +0000 (13:30 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 7 Dec 2018 17:27:55 +0000 (17:27 +0000)
commit5ef3fe4cecdf82fdd71ce78988403963d01444d4
tree937f28f9e3beea1a63e0d21c4c95bf604af3ade2
parent396244692232fcf0881cb6ba2404be2906f47681
arm64: Avoid redundant type conversions in xchg() and cmpxchg()

Our atomic instructions (either LSE atomics of LDXR/STXR sequences)
natively support byte, half-word, word and double-word memory accesses
so there is no need to mask the data register prior to being stored.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/atomic_ll_sc.h
arch/arm64/include/asm/atomic_lse.h
arch/arm64/include/asm/cmpxchg.h