Only use 1 set of memory barrier operations with the atomic_*_{acq,rel}_ptr

functions.
This commit is contained in:
John Baldwin 2000-10-25 00:15:21 +00:00
parent 785640153d
commit 2a1c4d6378
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67539

View file

@ -482,7 +482,6 @@ atomic_##NAME##_ptr(volatile void *p, uintptr_t v) \
static __inline void \
atomic_##NAME##_acq_ptr(volatile void *p, uintptr_t v) \
{ \
alpha_mb(); \
atomic_##NAME##_acq_long((volatile u_long *)p, v);\
} \
\
@ -490,7 +489,6 @@ static __inline void \
atomic_##NAME##_rel_ptr(volatile void *p, uintptr_t v) \
{ \
atomic_##NAME##_rel_long((volatile u_long *)p, v);\
alpha_wmb(); \
}
ATOMIC_PTR(set)