Changeset 99b3505 in rtems for cpukit/sapi


Ignore:
Timestamp:
Aug 7, 2013, 1:35:47 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
0432dff7
Parents:
48c4a55
git-author:
Sebastian Huber <sebastian.huber@…> (08/07/13 13:35:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/20/13 08:17:35)
Message:

smp: Add Deterministic Priority SMP Scheduler

File:
1 edited

Legend:

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

    r48c4a55 r99b3505  
    607607 *  CONFIGURE_SCHEDULER_USER       - user provided scheduler
    608608 *  CONFIGURE_SCHEDULER_PRIORITY   - Deterministic Priority Scheduler
     609 *  CONFIGURE_SCHEDULER_PRIORITY_SMP - Deterministic Priority SMP Scheduler
    609610 *  CONFIGURE_SCHEDULER_SIMPLE     - Light-weight Priority Scheduler
    610611 *  CONFIGURE_SCHEDULER_SIMPLE_SMP - Simple SMP Priority Scheduler
     
    630631#if !defined(CONFIGURE_SCHEDULER_USER) && \
    631632    !defined(CONFIGURE_SCHEDULER_PRIORITY) && \
     633    !defined(CONFIGURE_SCHEDULER_PRIORITY_SMP) && \
    632634    !defined(CONFIGURE_SCHEDULER_SIMPLE) && \
    633635    !defined(CONFIGURE_SCHEDULER_SIMPLE_SMP) && \
     
    635637    !defined(CONFIGURE_SCHEDULER_CBS)
    636638  #if defined(RTEMS_SMP) && defined(CONFIGURE_SMP_APPLICATION)
    637     #define CONFIGURE_SCHEDULER_SIMPLE_SMP
     639    #define CONFIGURE_SCHEDULER_PRIORITY_SMP
    638640  #else
    639641    #define CONFIGURE_SCHEDULER_PRIORITY
     
    654656    _Configure_From_workspace( \
    655657      ((CONFIGURE_MAXIMUM_PRIORITY+1) * sizeof(Chain_Control)) ) \
     658  )
     659  #define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER ( \
     660    _Configure_From_workspace(sizeof(Scheduler_priority_Per_thread)) )
     661#endif
     662
     663/*
     664 * If the Deterministic Priority SMP Scheduler is selected, then configure for
     665 * it.
     666 */
     667#if defined(CONFIGURE_SCHEDULER_PRIORITY_SMP)
     668  #include <rtems/score/schedulerprioritysmp.h>
     669  #define CONFIGURE_SCHEDULER_ENTRY_POINTS SCHEDULER_PRIORITY_SMP_ENTRY_POINTS
     670
     671  /**
     672   * This defines the memory used by the priority scheduler.
     673   */
     674  #define CONFIGURE_MEMORY_FOR_SCHEDULER ( \
     675    _Configure_From_workspace( \
     676      sizeof(Scheduler_SMP_Control) +  \
     677      ((CONFIGURE_MAXIMUM_PRIORITY) * sizeof(Chain_Control)) ) \
    656678  )
    657679  #define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER ( \
Note: See TracChangeset for help on using the changeset viewer.