Changeset 6d24e8b in rtems for cpukit/sapi


Ignore:
Timestamp:
Mar 18, 2014, 6:54:01 PM (5 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, master
Children:
54f345f5
Parents:
da5b1b9
git-author:
Jennifer Averett <jennifer.averett@…> (03/18/14 18:54:01)
git-committer:
Jennifer Averett <jennifer.averett@…> (04/03/14 15:48:56)
Message:

sapi: Add priority affinity smp scheduler.

File:
1 edited

Legend:

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

    rda5b1b9 r6d24e8b  
    630630 *  CONFIGURE_SCHEDULER_PRIORITY   - Deterministic Priority Scheduler
    631631 *  CONFIGURE_SCHEDULER_PRIORITY_SMP - Deterministic Priority SMP Scheduler
     632 *  CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP - Deterministic Priority SMP Affinity Scheduler
    632633 *  CONFIGURE_SCHEDULER_SIMPLE     - Light-weight Priority Scheduler
    633634 *  CONFIGURE_SCHEDULER_SIMPLE_SMP - Simple SMP Priority Scheduler
     
    654655    !defined(CONFIGURE_SCHEDULER_PRIORITY) && \
    655656    !defined(CONFIGURE_SCHEDULER_PRIORITY_SMP) && \
     657    !defined(CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP) && \
    656658    !defined(CONFIGURE_SCHEDULER_SIMPLE) && \
    657659    !defined(CONFIGURE_SCHEDULER_SIMPLE_SMP) && \
     
    698700    _Configure_From_workspace( \
    699701      sizeof(Scheduler_priority_SMP_Control) +  \
     702      ((CONFIGURE_MAXIMUM_PRIORITY) * sizeof(Chain_Control)) ) \
     703  )
     704  #define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER ( \
     705    _Configure_From_workspace(sizeof(Scheduler_priority_Per_thread)) )
     706#endif
     707
     708/*
     709 * If the Deterministic Priority Affinity SMP Scheduler is selected, then configure for
     710 * it.
     711 */
     712#if defined(CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP)
     713  #include <rtems/score/schedulerpriorityaffinitysmp.h>
     714  #define CONFIGURE_SCHEDULER_ENTRY_POINTS SCHEDULER_PRIORITY_AFFINITY_SMP_ENTRY_POINTS
     715
     716  /**
     717   * This defines the memory used by the priority scheduler.
     718   */
     719  #define CONFIGURE_MEMORY_FOR_SCHEDULER ( \
     720    _Configure_From_workspace( \
     721      sizeof(Scheduler_SMP_Control) +  \
    700722      ((CONFIGURE_MAXIMUM_PRIORITY) * sizeof(Chain_Control)) ) \
    701723  )
Note: See TracChangeset for help on using the changeset viewer.