Changeset 902170b in rtems-libbsd


Ignore:
Timestamp:
Oct 31, 2013, 10:49:14 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
2f72888
Parents:
44de29b
git-author:
Sebastian Huber <sebastian.huber@…> (10/31/13 10:49:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:20:13)
Message:

MTX_POOL(9): Disable unused mutex pools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/kern_mtxpool.c

    r44de29b r902170b  
    8181};
    8282
     83#ifndef __rtems__
    8384static struct mtx_pool_lockbuilder {
    8485        struct mtxpool_header mtx_pool_header;
    8586        struct mtx      mtx_pool_ary[MTX_POOL_LOCKBUILDER_SIZE];
    8687} lockbuilder_pool;
     88#endif /* __rtems__ */
    8789
    8890#define mtx_pool_size   mtx_pool_header.mtxpool_size
     
    9193#define mtx_pool_next   mtx_pool_header.mtxpool_next
    9294
     95#ifndef __rtems__
    9396struct mtx_pool *mtxpool_sleep;
    9497struct mtx_pool *mtxpool_lockbuilder;
     98#endif /* __rtems__ */
    9599
    96100#if UINTPTR_MAX == UINT64_MAX   /* 64 bits */
     
    168172}
    169173
     174#ifndef __rtems__
    170175static void
    171176mtx_pool_setup_static(void *dummy __unused)
     
    183188            MTX_POOL_SLEEP_SIZE, MTX_DEF);
    184189}
     190#endif /* __rtems__ */
    185191
    186192/*
     
    205211}
    206212
     213#ifndef __rtems__
    207214/*
    208215 * The lockbuilder pool must be initialized early because the lockmgr
     
    219226SYSINIT(mtxpooli2, SI_SUB_MTX_POOL_DYNAMIC, SI_ORDER_FIRST,
    220227    mtx_pool_setup_dynamic, NULL);
     228#endif /* __rtems__ */
Note: See TracChangeset for help on using the changeset viewer.