From bcbe8dc991a9ec63f30d50ed4cca89fd9e6b7ff7 Mon Sep 17 00:00:00 2001 From: Agustina Arzille Date: Fri, 5 May 2017 04:01:13 -1000 Subject: Replace sequential consistency with more efficient orders --- kern/bitmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kern/bitmap.h') diff --git a/kern/bitmap.h b/kern/bitmap.h index 6b7f2d79..a10fb512 100644 --- a/kern/bitmap.h +++ b/kern/bitmap.h @@ -78,7 +78,7 @@ bitmap_set_atomic(unsigned long *bm, int bit) bitmap_lookup(bm, bit); } - atomic_or(bm, bitmap_mask(bit), ATOMIC_SEQ_CST); + atomic_or_acq_rel(bm, bitmap_mask(bit)); } static inline void @@ -98,7 +98,7 @@ bitmap_clear_atomic(unsigned long *bm, int bit) bitmap_lookup(bm, bit); } - atomic_and(bm, ~bitmap_mask(bit), ATOMIC_SEQ_CST); + atomic_and_acq_rel(bm, ~bitmap_mask(bit)); } static inline int -- cgit v1.2.3