From 2a1c4d6378df1ac3c50a52a412dd43d99d372baf Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 25 Oct 2000 00:15:21 +0000 Subject: [PATCH] Only use 1 set of memory barrier operations with the atomic_*_{acq,rel}_ptr functions. --- sys/alpha/include/atomic.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/alpha/include/atomic.h b/sys/alpha/include/atomic.h index dad33dfa0c6..1c459930f28 100644 --- a/sys/alpha/include/atomic.h +++ b/sys/alpha/include/atomic.h @@ -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)