mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 0 additions and 2 deletions
|
|
@ -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