powerpc/atomic: Fix atomic_cmpset_rel()

Need a release barrier, not an acquire barrier, else bad things happen.
This commit is contained in:
Justin Hibbits 2019-10-15 03:37:21 +00:00
parent 63e9755548
commit 9551397f51

View File

@ -682,7 +682,7 @@ atomic_cmpset_long(volatile u_long* p, u_long cmpval, u_long newval)
atomic_cmpset_rel_##type(volatile u_##type *p, \
u_##type cmpval, u_##type newval)\
{\
__ATOMIC_ACQ();\
__ATOMIC_REL();\
return (atomic_cmpset_##type(p, cmpval, newval));\
}\
struct hack