Only use 1 set of memory barrier operations with the atomic_*_{acq,rel}_ptr
functions.
This commit is contained in:
parent
785640153d
commit
2a1c4d6378
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user