mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-09 01:50:35 +00:00
Only use 1 set of memory barrier operations with the atomic_*_{acq,rel}_ptr
functions.
This commit is contained in:
parent
785640153d
commit
2a1c4d6378
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67539
|
@ -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…
Reference in a new issue