Changeset 7c3fb9b in mainline for kernel/arch/abs32le/include/arch/atomic.h
- Timestamp:
- 2018-05-17T08:29:01Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/include/arch/atomic.h
rfac0ac7 r7c3fb9b 47 47 REQUIRES(val->count < ATOMIC_COUNT_MAX) 48 48 { 49 /* On real hardware the increment has to be done 50 as an atomic action. */ 49 /* 50 * On real hardware the increment has to be done 51 * as an atomic action. 52 */ 51 53 52 54 val->count++; … … 58 60 REQUIRES(val->count > ATOMIC_COUNT_MIN) 59 61 { 60 /* On real hardware the decrement has to be done 61 as an atomic action. */ 62 /* 63 * On real hardware the decrement has to be done 64 * as an atomic action. 65 */ 62 66 63 67 val->count--; … … 69 73 REQUIRES(val->count < ATOMIC_COUNT_MAX) 70 74 { 71 /* On real hardware both the storing of the previous 72 value and the increment have to be done as a single 73 atomic action. */ 75 /* 76 * On real hardware both the storing of the previous 77 * value and the increment have to be done as a single 78 * atomic action. 79 */ 74 80 75 81 atomic_count_t prev = val->count; … … 84 90 REQUIRES(val->count > ATOMIC_COUNT_MIN) 85 91 { 86 /* On real hardware both the storing of the previous 87 value and the decrement have to be done as a single 88 atomic action. */ 92 /* 93 * On real hardware both the storing of the previous 94 * value and the decrement have to be done as a single 95 * atomic action. 96 */ 89 97 90 98 atomic_count_t prev = val->count; … … 101 109 REQUIRES_EXTENT_MUTABLE(val) 102 110 { 103 /* On real hardware the retrieving of the original 104 value and storing 1 have to be done as a single 105 atomic action. */ 111 /* 112 * On real hardware the retrieving of the original 113 * value and storing 1 have to be done as a single 114 * atomic action. 115 */ 106 116 107 117 atomic_count_t prev = val->count;
Note:
See TracChangeset
for help on using the changeset viewer.