Changeset 82d515e9 in mainline for kernel/generic/src/mm/as.c


Ignore:
Timestamp:
2017-12-05T11:30:02Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9af1c61
Parents:
9a09212
git-author:
Jakub Jermar <jakub@…> (2017-12-05 11:25:41)
git-committer:
Jakub Jermar <jakub@…> (2017-12-05 11:30:02)
Message:

Fix terminology

Objects of slab_cache_t type are caches, not slabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    r9a09212 r82d515e9  
    9090 *
    9191 */
    92 static slab_cache_t *as_slab;
     92static slab_cache_t *as_cache;
    9393
    9494/** ASID subsystem lock.
     
    131131        as_arch_init();
    132132       
    133         as_slab = slab_cache_create("as_t", sizeof(as_t), 0,
     133        as_cache = slab_cache_create("as_t", sizeof(as_t), 0,
    134134            as_constructor, as_destructor, SLAB_CACHE_MAGDEFERRED);
    135135       
     
    153153as_t *as_create(unsigned int flags)
    154154{
    155         as_t *as = (as_t *) slab_alloc(as_slab, 0);
     155        as_t *as = (as_t *) slab_alloc(as_cache, 0);
    156156        (void) as_create_arch(as, 0);
    157157       
     
    254254#endif
    255255       
    256         slab_free(as_slab, as);
     256        slab_free(as_cache, as);
    257257}
    258258
Note: See TracChangeset for help on using the changeset viewer.