Changeset beab7329 in rtems for cpukit/sapi


Ignore:
Timestamp:
May 13, 2014, 2:03:05 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c6522a65
Parents:
5b1ff71a
git-author:
Sebastian Huber <sebastian.huber@…> (05/13/14 14:03:05)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/14/14 12:46:19)
Message:

score: Introduce scheduler nodes

Rename scheduler per-thread information into scheduler nodes using
Scheduler_Node as the base type. Use inheritance for specialized
schedulers.

Move the scheduler specific states from the thread control block into
the scheduler node structure.

Validate the SMP scheduler node state transitions in case RTEMS_DEBUG is
defined.

File:
1 edited

Legend:

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

    r5b1ff71a rbeab7329  
    24752475    #endif
    24762476    union {
     2477      Scheduler_Node Base;
    24772478      #ifdef CONFIGURE_SCHEDULER_CBS
    2478         Scheduler_CBS_Per_thread CBS;
     2479        Scheduler_CBS_Node CBS;
    24792480      #endif
    24802481      #ifdef CONFIGURE_SCHEDULER_EDF
    2481         Scheduler_EDF_Per_thread EDF;
     2482        Scheduler_EDF_Node EDF;
    24822483      #endif
    2483       #if defined(CONFIGURE_SCHEDULER_PRIORITY) \
    2484         || defined(CONFIGURE_SCHEDULER_PRIORITY_SMP)
    2485         Scheduler_priority_Per_thread Priority;
     2484      #ifdef CONFIGURE_SCHEDULER_PRIORITY
     2485        Scheduler_priority_Node Priority;
     2486      #endif
     2487      #ifdef CONFIGURE_SCHEDULER_SIMPLE_SMP
     2488        Scheduler_SMP_Node Simple_SMP;
     2489      #endif
     2490      #ifdef CONFIGURE_SCHEDULER_PRIORITY_SMP
     2491        Scheduler_priority_SMP_Node Priority_SMP;
    24862492      #endif
    24872493      #ifdef CONFIGURE_SCHEDULER_PRIORITY_AFFINITY_SMP
    2488         Scheduler_priority_affinity_SMP_Per_thread Priority_affinity;
     2494        Scheduler_priority_affinity_SMP_Node Priority_affinity_SMP;
    24892495      #endif
    24902496      #ifdef CONFIGURE_SCHEDULER_USER_PER_THREAD
     
    25122518  const Thread_Control_add_on _Thread_Control_add_ons[] = {
    25132519    {
    2514       offsetof( Configuration_Thread_control, Control.scheduler_info ),
     2520      offsetof( Configuration_Thread_control, Control.scheduler_node ),
    25152521      offsetof( Configuration_Thread_control, Scheduler )
    25162522    }, {
Note: See TracChangeset for help on using the changeset viewer.