Changeset 0561cc1 in rtems


Ignore:
Timestamp:
Feb 21, 2020, 6:34:50 AM (20 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
cadd8d1
Parents:
cfe68385
git-author:
Sebastian Huber <sebastian.huber@…> (02/21/20 06:34:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/25/20 06:18:36)
Message:

config: Remove _Configure_Max_Objects()

Use rtems_resource_maximum_per_allocation() directly. The use of
_Configure_Zero_or_one() was superfluous.

Update #3875.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/confdefs.h

    rcfe68385 r0561cc1  
    12561256    _Configure_From_workspace(_stack_size + CONTEXT_FP_SIZE)
    12571257#endif
    1258 
    1259 /**
    1260  * Do not use the unlimited bit as part of the multiplication
    1261  * for memory usage.
    1262  */
    1263 #define _Configure_Max_Objects(_max) \
    1264   (_Configure_Zero_or_One(_max) * rtems_resource_maximum_per_allocation(_max))
    12651258/**@}*/
    12661259
     
    20702063 */
    20712064#define _Configure_POSIX_Named_Object_RAM(_number, _size) \
    2072   (_Configure_Max_Objects(_number) \
     2065  (rtems_resource_maximum_per_allocation(_number) \
    20732066    * _Configure_From_workspace(_POSIX_PATH_MAX + 1))
    20742067
     
    22942287 */
    22952288#define _CONFIGURE_TASKS_STACK \
    2296   (_Configure_Max_Objects( _CONFIGURE_TASKS ) * \
     2289  (rtems_resource_maximum_per_allocation( _CONFIGURE_TASKS ) * \
    22972290    _Configure_From_stackspace( CONFIGURE_MINIMUM_TASK_STACK_SIZE ) )
    22982291
     
    23022295 */
    23032296#define _CONFIGURE_POSIX_THREADS_STACK \
    2304   (_Configure_Max_Objects( CONFIGURE_MAXIMUM_POSIX_THREADS ) * \
     2297  (rtems_resource_maximum_per_allocation( CONFIGURE_MAXIMUM_POSIX_THREADS ) * \
    23052298    _Configure_From_stackspace( CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE ) )
    23062299
Note: See TracChangeset for help on using the changeset viewer.