Changeset 248fc1a in mainline for generic/src/mm/slab.c
- Timestamp:
- 2006-02-05T13:56:01Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 444ec64
- Parents:
- e22f561
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/slab.c
re22f561 r248fc1a 253 253 list_remove(&slab->link); 254 254 list_prepend(&slab->link, &cache->partial_slabs); 255 spinlock_unlock(&cache->slablock);256 }255 } 256 spinlock_unlock(&cache->slablock); 257 257 return 0; 258 258 } … … 537 537 int i; 538 538 int pages; 539 ipl_t ipl; 539 540 540 541 memsetb((__address)cache, sizeof(*cache), 0); … … 581 582 cache->flags |= SLAB_CACHE_SLINSIDE; 582 583 584 /* Add cache to cache list */ 585 ipl = interrupts_disable(); 583 586 spinlock_lock(&slab_cache_lock); 584 587 … … 586 589 587 590 spinlock_unlock(&slab_cache_lock); 591 interrupts_restore(ipl); 588 592 } 589 593 … … 759 763 slab_cache_t *cache; 760 764 link_t *cur; 761 765 ipl_t ipl; 766 767 ipl = interrupts_disable(); 762 768 spinlock_lock(&slab_cache_lock); 763 769 printf("SLAB name\tOsize\tPages\tObj/pg\tSlabs\tCached\tAllocobjs\tCtl\n"); … … 772 778 } 773 779 spinlock_unlock(&slab_cache_lock); 780 interrupts_restore(ipl); 774 781 } 775 782
Note:
See TracChangeset
for help on using the changeset viewer.