Changeset 55821eea in mainline
- Timestamp:
- 2010-04-28T21:04:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c2ab3f4
- Parents:
- a422bc5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/slab.c
ra422bc5 r55821eea 555 555 * Initialize mag_cache structure in slab cache 556 556 */ 557 static voidmake_magcache(slab_cache_t *cache)557 static bool make_magcache(slab_cache_t *cache) 558 558 { 559 559 unsigned int i; … … 562 562 563 563 cache->mag_cache = malloc(sizeof(slab_mag_cache_t) * config.cpu_count, 564 0); 564 FRAME_ATOMIC); 565 if (!cache->mag_cache) 566 return false; 567 565 568 for (i = 0; i < config.cpu_count; i++) { 566 569 memsetb(&cache->mag_cache[i], sizeof(cache->mag_cache[i]), 0); … … 568 571 "slab_maglock_cpu"); 569 572 } 573 return true; 570 574 } 571 575 … … 597 601 spinlock_initialize(&cache->maglock, "slab_maglock"); 598 602 if (!(cache->flags & SLAB_CACHE_NOMAGAZINE)) 599 make_magcache(cache);603 (void) make_magcache(cache); 600 604 601 605 /* Compute slab sizes, object counts in slabs etc. */ … … 923 927 SLAB_CACHE_MAGDEFERRED) 924 928 continue; 925 make_magcache(s);929 (void) make_magcache(s); 926 930 s->flags &= ~SLAB_CACHE_MAGDEFERRED; 927 931 }
Note:
See TracChangeset
for help on using the changeset viewer.