Changeset 34487537 in rtems for cpukit/sapi


Ignore:
Timestamp:
Jul 4, 2017, 7:57:30 AM (23 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4a1bdd30
Parents:
d19dc071
git-author:
Sebastian Huber <sebastian.huber@…> (07/04/17 07:57:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/10/17 05:49:36)
Message:

score: Add simple affinity support to EDF SMP

Update #3059.

Location:
cpukit/sapi/include
Files:
2 edited

Legend:

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

    rd19dc071 r34487537  
    993993  #if !defined(CONFIGURE_SCHEDULER_CONTROLS)
    994994    /** Configure the context needed by the scheduler instance */
    995     #define CONFIGURE_SCHEDULER_CONTEXT RTEMS_SCHEDULER_CONTEXT_EDF_SMP(dflt)
     995    #define CONFIGURE_SCHEDULER_CONTEXT \
     996      RTEMS_SCHEDULER_CONTEXT_EDF_SMP(dflt, CONFIGURE_MAXIMUM_PROCESSORS)
    996997
    997998    /** Configure the controls for this scheduler instance */
  • cpukit/sapi/include/rtems/scheduler.h

    rd19dc071 r34487537  
    100100    RTEMS_SCHEDULER_CONTEXT_NAME( EDF_SMP_ ## name )
    101101
    102   #define RTEMS_SCHEDULER_CONTEXT_EDF_SMP( name ) \
    103     static Scheduler_EDF_SMP_Context RTEMS_SCHEDULER_CONTEXT_EDF_SMP_NAME( name )
     102  #define RTEMS_SCHEDULER_CONTEXT_EDF_SMP( name, max_cpu_count ) \
     103    static struct { \
     104      Scheduler_EDF_SMP_Context Base; \
     105      Scheduler_EDF_SMP_Ready_queue Ready[ ( max_cpu_count ) + 1 ]; \
     106    } RTEMS_SCHEDULER_CONTEXT_EDF_SMP_NAME( name )
    104107
    105108  #define RTEMS_SCHEDULER_CONTROL_EDF_SMP( name, obj_name ) \
    106109    { \
    107       &RTEMS_SCHEDULER_CONTEXT_EDF_SMP_NAME( name ).Base.Base, \
     110      &RTEMS_SCHEDULER_CONTEXT_EDF_SMP_NAME( name ).Base.Base.Base, \
    108111      SCHEDULER_EDF_SMP_ENTRY_POINTS, \
    109112      SCHEDULER_EDF_MAXIMUM_PRIORITY, \
Note: See TracChangeset for help on using the changeset viewer.