diff options
author | Agustina Arzille <avarzille@riseup.net> | 2017-04-03 16:09:51 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-04-04 22:07:06 +0200 |
commit | b1730c99f882fc2662c6b64371a4b11a8231bb9f (patch) | |
tree | c4fa5fa51287aee6d6cb372f1cfa8f6413ababd6 /kern/syscnt_types.h | |
parent | d5bb14cf6a8305bda2a5a73ce727e5309996a20a (diff) |
Use the new atomic operations interface
Stick to a sequentially consistent model for most atomic operations as it
matches the semantics of the existing code. Each call site will have to be
reevaluated in order to switch to more relaxed accesses where possible.
Diffstat (limited to 'kern/syscnt_types.h')
-rw-r--r-- | kern/syscnt_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/syscnt_types.h b/kern/syscnt_types.h index 5b429b7..81fb798 100644 --- a/kern/syscnt_types.h +++ b/kern/syscnt_types.h @@ -23,6 +23,7 @@ #include <stdint.h> +#include <kern/atomic.h> #include <kern/list_types.h> #include <kern/spinlock_types.h> @@ -31,7 +32,7 @@ * on 32-bits ones. */ struct syscnt { -#ifndef __LP64__ +#ifndef ATOMIC_HAVE_64B_OPS struct spinlock lock; #endif /* __LP64__ */ |