]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
atomic: Add atomic_cmpset_masked to powerpc and use it
authorJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 15 Nov 2019 04:33:07 +0000 (04:33 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 7 Oct 2021 03:27:27 +0000 (22:27 -0500)
commite0363a08dc453be7b67f38d8a9663ff41dde94ee
tree1293f2bec00225bc90dd32301cad19b6aeaf56cd
parentec7b80ade997c5011bc1f1ccd5a74384b70239f2
atomic: Add atomic_cmpset_masked to powerpc and use it

Summary:
This is a more optimal way of doing atomic_compset_masked() than the
fallback in sys/_atomic_subword.h.  There's also an override for
_atomic_fcmpset_masked_word(), which may or may not be necessary, and is
unused for powerpc.

(cherry picked from commit d0bdb11139424b9dcfe3b73cd5a003055382de03)
sys/powerpc/include/atomic.h
sys/sys/_atomic_subword.h