Changes in kernel/arch/abs32le/include/atomic.h [7a0359b:33c4f72] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/include/atomic.h
r7a0359b r33c4f72 40 40 #include <preemption.h> 41 41 #include <verify.h> 42 #include <trace.h>43 42 44 NO_TRACEATOMIC static inline void atomic_inc(atomic_t *val)43 ATOMIC static inline void atomic_inc(atomic_t *val) 45 44 WRITES(&val->count) 46 45 REQUIRES_EXTENT_MUTABLE(val) … … 53 52 } 54 53 55 NO_TRACEATOMIC static inline void atomic_dec(atomic_t *val)54 ATOMIC static inline void atomic_dec(atomic_t *val) 56 55 WRITES(&val->count) 57 56 REQUIRES_EXTENT_MUTABLE(val) … … 64 63 } 65 64 66 NO_TRACEATOMIC static inline atomic_count_t atomic_postinc(atomic_t *val)65 ATOMIC static inline atomic_count_t atomic_postinc(atomic_t *val) 67 66 WRITES(&val->count) 68 67 REQUIRES_EXTENT_MUTABLE(val) … … 79 78 } 80 79 81 NO_TRACEATOMIC static inline atomic_count_t atomic_postdec(atomic_t *val)80 ATOMIC static inline atomic_count_t atomic_postdec(atomic_t *val) 82 81 WRITES(&val->count) 83 82 REQUIRES_EXTENT_MUTABLE(val) … … 97 96 #define atomic_predec(val) (atomic_postdec(val) - 1) 98 97 99 NO_TRACEATOMIC static inline atomic_count_t test_and_set(atomic_t *val)98 ATOMIC static inline atomic_count_t test_and_set(atomic_t *val) 100 99 WRITES(&val->count) 101 100 REQUIRES_EXTENT_MUTABLE(val) … … 110 109 } 111 110 112 NO_TRACEstatic inline void atomic_lock_arch(atomic_t *val)111 static inline void atomic_lock_arch(atomic_t *val) 113 112 WRITES(&val->count) 114 113 REQUIRES_EXTENT_MUTABLE(val)
Note:
See TracChangeset
for help on using the changeset viewer.