Changeset 1d073c5 in rtems-docs


Ignore:
Timestamp:
Feb 14, 2017, 9:18:25 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
fad46ff
Parents:
29222e3
Message:

c-user: CONFIGURE_MAXIMUM_PROCESSORS

Update #2894.

Location:
c-user
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c-user/configuring_a_system.rst

    r29222e3 r1d073c5  
    16481648    RTEMS Workspace.
    16491649
     1650.. COMMENT: === CONFIGURE_MAXIMUM_PROCESSORS ===
     1651
     1652.. _CONFIGURE_MAXIMUM_PROCESSORS:
     1653
     1654Specify Maximum Processors
     1655----------------------------------------
     1656.. index:: CONFIGURE_MAXIMUM_PROCESSORS
     1657
     1658CONSTANT:
     1659    ``CONFIGURE_MAXIMUM_PROCESSORS``
     1660
     1661DATA TYPE:
     1662    Unsigned integer (``uint32_t``).
     1663
     1664RANGE:
     1665    Positive.
     1666
     1667DEFAULT VALUE:
     1668    The default value is 1.
     1669
     1670DESCRIPTION:
     1671    ``CONFIGURE_MAXIMUM_PROCESSORS`` must be set to the maximum number of
     1672    processors an applicaiton intends to use.  The number of acually available
     1673    processors depends on the hardware and may be less.  It is recommended to
     1674    use the smallest value suitable for the application in order to save
     1675    memory.  Each processor needs an idle thread and interrupt stack for
     1676    example.
     1677
     1678NOTES:
     1679    If there are more processors available than configured, the rest will be
     1680    ignored.  This configuration define is ignored in uni-processor
     1681    configurations.
     1682
    16501683.. COMMENT: === CONFIGURE_MICROSECONDS_PER_TICK ===
    16511684
     
    38313864
    38323865    This scheduler is currently the default in SMP configurations and is only
    3833     selected when ``CONFIGURE_SMP_MAXIMUM_PROCESSORS`` is greater than one.
     3866    selected when ``CONFIGURE_MAXIMUM_PROCESSORS`` is greater than one.
    38343867
    38353868.. COMMENT: === CONFIGURE_SCHEDULER_SIMPLE_SMP ===
     
    40214054    purpose a scheduler assignment table must be defined.  The entry count of
    40224055    this table must be equal to the configured maximum processors
    4023     (``CONFIGURE_SMP_MAXIMUM_PROCESSORS``).  A processor assignment to a
     4056    (``CONFIGURE_MAXIMUM_PROCESSORS``).  A processor assignment to a
    40244057    scheduler can be optional or mandatory.  The boot processor must have a
    40254058    scheduler assigned.  In case the system needs more mandatory processors
     
    40924125    .. code-block:: c
    40934126
    4094         #define CONFIGURE_SMP_MAXIMUM_PROCESSORS 8
     4127        #define CONFIGURE_MAXIMUM_PROCESSORS 8
    40954128        #define CONFIGURE_MAXIMUM_PRIORITY 255
    40964129
     
    41254158            RTEMS_SCHEDULER_ASSIGN(1, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL)
    41264159
    4127 .. COMMENT: === SMP Specific Configuration Parameters ===
    4128 
    4129 SMP Specific Configuration Parameters
    4130 =====================================
    4131 
    4132 When RTEMS is configured to support SMP target systems, there are other
    4133 configuration parameters which apply.
    4134 
    4135 .. COMMENT: === CONFIGURE_SMP_MAXIMUM_PROCESSORS ===
    4136 
    4137 .. _CONFIGURE_SMP_MAXIMUM_PROCESSORS:
    4138 
    4139 Specify Maximum Processors in SMP System
    4140 ----------------------------------------
    4141 .. index:: CONFIGURE_SMP_MAXIMUM_PROCESSORS
    4142 
    4143 CONSTANT:
    4144     ``CONFIGURE_SMP_MAXIMUM_PROCESSORS``
    4145 
    4146 DATA TYPE:
    4147     Unsigned integer (``uint32_t``).
    4148 
    4149 RANGE:
    4150     Defined or undefined.
    4151 
    4152 DEFAULT VALUE:
    4153     The default value is 1.
    4154 
    4155 DESCRIPTION:
    4156     ``CONFIGURE_SMP_MAXIMUM_PROCESSORS`` must be set to the number of
    4157     processors in the SMP configuration.
    4158 
    4159 NOTES:
    4160     If there are more processors available than configured, the rest will be
    4161     ignored.  This configuration define is ignored on uni-processor
    4162     configurations.
    4163 
    41644160.. COMMENT: === Device Driver Table ===
    41654161
  • c-user/semaphore_manager.rst

    r29222e3 r1d073c5  
    884884        #define CONFIGURE_MAXIMUM_SEMAPHORES 1
    885885        #define CONFIGURE_MAXIMUM_MRSP_SEMAPHORES 1
    886         #define CONFIGURE_SMP_MAXIMUM_PROCESSORS 2
     886        #define CONFIGURE_MAXIMUM_PROCESSORS 2
    887887        #define CONFIGURE_SCHEDULER_SIMPLE_SMP
    888888
  • c-user/symmetric_multiprocessing_services.rst

    r29222e3 r1d073c5  
    4646By default, the maximum processor count is set to one in the application
    4747configuration.  To enable SMP, the application configuration option
    48 :ref:`CONFIGURE_SMP_MAXIMUM_PROCESSORS <CONFIGURE_SMP_MAXIMUM_PROCESSORS>` must
    49 be defined to a value greater than one.  It is recommended to use the smallest
    50 value suitable for the application in order to safe memory.  Each processor
     48:ref:`CONFIGURE_MAXIMUM_PROCESSORS <CONFIGURE_MAXIMUM_PROCESSORS>` must be
     49defined to a value greater than one.  It is recommended to use the smallest
     50value suitable for the application in order to save memory.  Each processor
    5151needs an idle thread and interrupt stack for example.
    5252
Note: See TracChangeset for help on using the changeset viewer.