diff options
author | Agustina Arzille <avarzille@riseup.net> | 2017-05-05 04:01:13 -1000 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-05-09 21:17:58 +0200 |
commit | bcbe8dc991a9ec63f30d50ed4cca89fd9e6b7ff7 (patch) | |
tree | 389517510b8d19082d02f36453dbf68356b548fb /kern/bitmap.h | |
parent | b5864f82b9c0d8ea2e825e7d86bd8cdeb825f870 (diff) |
Replace sequential consistency with more efficient orders
Diffstat (limited to 'kern/bitmap.h')
-rw-r--r-- | kern/bitmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |