Ignore:
Timestamp:
Apr 9, 2014, 8:33:00 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
b427a92
Parents:
0712d17
git-author:
Sebastian Huber <sebastian.huber@…> (04/09/14 08:33:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/15/14 06:37:12)
Message:

score: Add scheduler name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/rtems/scheduler.h

    r0712d17 r133d54c5  
    4444    static Scheduler_EDF_Context RTEMS_SCHEDULER_CONTEXT_CBS_NAME( name )
    4545
    46   #define RTEMS_SCHEDULER_CONTROL_CBS( name ) \
     46  #define RTEMS_SCHEDULER_CONTROL_CBS( name, obj_name ) \
    4747    { \
    4848      &RTEMS_SCHEDULER_CONTEXT_CBS_NAME( name ).Base, \
    49       SCHEDULER_CBS_ENTRY_POINTS \
     49      SCHEDULER_CBS_ENTRY_POINTS, \
     50      ( obj_name ) \
    5051    }
    5152#endif
     
    6061    static Scheduler_EDF_Context RTEMS_SCHEDULER_CONTEXT_EDF_NAME( name )
    6162
    62   #define RTEMS_SCHEDULER_CONTROL_EDF( name ) \
     63  #define RTEMS_SCHEDULER_CONTROL_EDF( name, obj_name ) \
    6364    { \
    6465      &RTEMS_SCHEDULER_CONTEXT_EDF_NAME( name ).Base, \
    65       SCHEDULER_EDF_ENTRY_POINTS \
     66      SCHEDULER_EDF_ENTRY_POINTS, \
     67      ( obj_name ) \
    6668    }
    6769#endif
     
    7981    } RTEMS_SCHEDULER_CONTEXT_PRIORITY_NAME( name )
    8082
    81   #define RTEMS_SCHEDULER_CONTROL_PRIORITY( name ) \
     83  #define RTEMS_SCHEDULER_CONTROL_PRIORITY( name, obj_name ) \
    8284    { \
    8385      &RTEMS_SCHEDULER_CONTEXT_PRIORITY_NAME( name ).Base.Base, \
    84       SCHEDULER_PRIORITY_ENTRY_POINTS \
     86      SCHEDULER_PRIORITY_ENTRY_POINTS, \
     87      ( obj_name ) \
    8588    }
    8689#endif
     
    98101    } RTEMS_SCHEDULER_CONTEXT_PRIORITY_AFFINITY_SMP_NAME( name )
    99102
    100   #define RTEMS_SCHEDULER_CONTROL_PRIORITY_AFFINITY_SMP( name ) \
     103  #define RTEMS_SCHEDULER_CONTROL_PRIORITY_AFFINITY_SMP( name, obj_name ) \
    101104    { \
    102105      &RTEMS_SCHEDULER_CONTEXT_PRIORITY_AFFINITY_SMP_NAME( name ).Base.Base, \
    103       SCHEDULER_PRIORITY_AFFINITY_SMP_ENTRY_POINTS \
     106      SCHEDULER_PRIORITY_AFFINITY_SMP_ENTRY_POINTS, \
     107      ( obj_name ) \
    104108    }
    105109#endif
     
    117121    } RTEMS_SCHEDULER_CONTEXT_PRIORITY_SMP_NAME( name )
    118122
    119   #define RTEMS_SCHEDULER_CONTROL_PRIORITY_SMP( name ) \
     123  #define RTEMS_SCHEDULER_CONTROL_PRIORITY_SMP( name, obj_name ) \
    120124    { \
    121125      &RTEMS_SCHEDULER_CONTEXT_PRIORITY_SMP_NAME( name ).Base.Base, \
    122       SCHEDULER_PRIORITY_SMP_ENTRY_POINTS \
     126      SCHEDULER_PRIORITY_SMP_ENTRY_POINTS, \
     127      ( obj_name ) \
    123128    }
    124129#endif
     
    134139      RTEMS_SCHEDULER_CONTEXT_SIMPLE_NAME( name )
    135140
    136   #define RTEMS_SCHEDULER_CONTROL_SIMPLE( name ) \
     141  #define RTEMS_SCHEDULER_CONTROL_SIMPLE( name, obj_name ) \
    137142    { \
    138143      &RTEMS_SCHEDULER_CONTEXT_SIMPLE_NAME( name ).Base, \
    139       SCHEDULER_SIMPLE_ENTRY_POINTS \
     144      SCHEDULER_SIMPLE_ENTRY_POINTS, \
     145      ( obj_name ) \
    140146    }
    141147#endif
     
    151157      RTEMS_SCHEDULER_CONTEXT_SIMPLE_SMP_NAME( name )
    152158
    153   #define RTEMS_SCHEDULER_CONTROL_SIMPLE_SMP( name ) \
     159  #define RTEMS_SCHEDULER_CONTROL_SIMPLE_SMP( name, obj_name ) \
    154160    { \
    155161      &RTEMS_SCHEDULER_CONTEXT_SIMPLE_SMP_NAME( name ).Base, \
    156       SCHEDULER_SIMPLE_SMP_ENTRY_POINTS \
     162      SCHEDULER_SIMPLE_SMP_ENTRY_POINTS, \
     163      ( obj_name ) \
    157164    }
    158165#endif
Note: See TracChangeset for help on using the changeset viewer.