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/syscnt.h | |
parent | b5864f82b9c0d8ea2e825e7d86bd8cdeb825f870 (diff) |
Replace sequential consistency with more efficient orders
Diffstat (limited to 'kern/syscnt.h')
-rw-r--r-- | kern/syscnt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/syscnt.h b/kern/syscnt.h index c28f3b52..a4bae3d7 100644 --- a/kern/syscnt.h +++ b/kern/syscnt.h @@ -62,7 +62,7 @@ void syscnt_register(struct syscnt *syscnt, const char *name); static inline void syscnt_add(struct syscnt *syscnt, int64_t delta) { - atomic_add(&syscnt->value, delta, ATOMIC_SEQ_CST); + atomic_add(&syscnt->value, delta, ATOMIC_RELAXED); } static inline uint64_t |