Changeset 494c2e3 in rtems for cpukit/sapi


Ignore:
Timestamp:
04/01/14 09:48:59 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
1a6093d
Parents:
f570b071
git-author:
Sebastian Huber <sebastian.huber@…> (04/01/14 09:48:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/03/14 09:13:26)
Message:

score: Move priority bit map to scheduler instance

Delete global variables _Priority_Major_bit_map and _Priority_Bit_map.
This makes it possible to use multiple priority scheduler instances for
example with clustered/partitioned scheduling on SMP.

File:
1 edited

Legend:

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

    rf570b071 r494c2e3  
    677677  #define CONFIGURE_MEMORY_FOR_SCHEDULER ( \
    678678    _Configure_From_workspace( \
    679       ((CONFIGURE_MAXIMUM_PRIORITY+1) * sizeof(Chain_Control)) ) \
    680   )
    681   #define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER ( \
    682     _Configure_From_workspace(sizeof(Scheduler_priority_Per_thread)) )
    683 #endif
    684 
    685 /*
    686  * If the Deterministic Priority SMP Scheduler is selected, then configure for
    687  * it.
    688  */
    689 #if defined(CONFIGURE_SCHEDULER_PRIORITY_SMP)
    690   #include <rtems/score/schedulerprioritysmp.h>
    691   #define CONFIGURE_SCHEDULER_ENTRY_POINTS SCHEDULER_PRIORITY_SMP_ENTRY_POINTS
    692 
    693   /**
    694    * This defines the memory used by the priority scheduler.
    695    */
    696   #define CONFIGURE_MEMORY_FOR_SCHEDULER ( \
    697     _Configure_From_workspace( \
    698       sizeof(Scheduler_SMP_Control) +  \
     679      sizeof(Scheduler_priority_Control) +  \
    699680      ((CONFIGURE_MAXIMUM_PRIORITY) * sizeof(Chain_Control)) ) \
    700681  )
     
    704685
    705686/*
     687 * If the Deterministic Priority SMP Scheduler is selected, then configure for
     688 * it.
     689 */
     690#if defined(CONFIGURE_SCHEDULER_PRIORITY_SMP)
     691  #include <rtems/score/schedulerprioritysmp.h>
     692  #define CONFIGURE_SCHEDULER_ENTRY_POINTS SCHEDULER_PRIORITY_SMP_ENTRY_POINTS
     693
     694  /**
     695   * This defines the memory used by the priority scheduler.
     696   */
     697  #define CONFIGURE_MEMORY_FOR_SCHEDULER ( \
     698    _Configure_From_workspace( \
     699      sizeof(Scheduler_priority_SMP_Control) +  \
     700      ((CONFIGURE_MAXIMUM_PRIORITY) * sizeof(Chain_Control)) ) \
     701  )
     702  #define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER ( \
     703    _Configure_From_workspace(sizeof(Scheduler_priority_Per_thread)) )
     704#endif
     705
     706/*
    706707 * If the Simple Priority Scheduler is selected, then configure for it.
    707708 */
     
    732733   */
    733734  #define CONFIGURE_MEMORY_FOR_SCHEDULER ( \
    734     _Configure_From_workspace( sizeof( Scheduler_SMP_Control ) ) \
     735    _Configure_From_workspace( sizeof( Scheduler_simple_SMP_Control ) ) \
    735736  )
    736737  #define CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER (0)
Note: See TracChangeset for help on using the changeset viewer.