Changeset fc10e1b in mainline for kernel/generic/src/mm
- Timestamp:
- 2018-09-07T16:34:11Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d2c91ab
- Parents:
- 508b0df1 (diff), e90cfa6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/generic/src/mm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
r508b0df1 rfc10e1b 163 163 as->asid = ASID_INVALID; 164 164 165 atomic_set(&as->refcount, 0);165 refcount_init(&as->refcount); 166 166 as->cpu_refcount = 0; 167 167 … … 190 190 191 191 assert(as != AS); 192 assert( atomic_get(&as->refcount) == 0);192 assert(refcount_unique(&as->refcount)); 193 193 194 194 /* … … 267 267 NO_TRACE void as_hold(as_t *as) 268 268 { 269 atomic_inc(&as->refcount);269 refcount_up(&as->refcount); 270 270 } 271 271 … … 275 275 * destroys the address space. 276 276 * 277 * @param as Address space to be released.277 * @param as Address space to be released. 278 278 * 279 279 */ 280 280 NO_TRACE void as_release(as_t *as) 281 281 { 282 if ( atomic_predec(&as->refcount) == 0)282 if (refcount_down(&as->refcount)) 283 283 as_destroy(as); 284 284 } -
kernel/generic/src/mm/slab.c
r508b0df1 rfc10e1b 690 690 * endless loop 691 691 */ 692 atomic_count_t magcount = atomic_get(&cache->magazine_counter);692 size_t magcount = atomic_load(&cache->magazine_counter); 693 693 694 694 slab_magazine_t *mag; … … 876 876 size_t size = cache->size; 877 877 size_t objects = cache->objects; 878 long allocated_slabs = atomic_ get(&cache->allocated_slabs);879 long cached_objs = atomic_ get(&cache->cached_objs);880 long allocated_objs = atomic_ get(&cache->allocated_objs);878 long allocated_slabs = atomic_load(&cache->allocated_slabs); 879 long cached_objs = atomic_load(&cache->cached_objs); 880 long allocated_objs = atomic_load(&cache->allocated_objs); 881 881 unsigned int flags = cache->flags; 882 882
Note:
See TracChangeset
for help on using the changeset viewer.
