Changeset 91a2d5e in rtems


Ignore:
Timestamp:
Nov 10, 2017, 3:21:18 PM (20 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ddc339c
Parents:
727cf48
git-author:
Sebastian Huber <sebastian.huber@…> (11/10/17 15:21:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/17/17 05:55:10)
Message:

score: Adjust _Scheduler_EDF_SMP_Insert_ready()

Use only one parameter to compute the next generation. Use index 0 for
LIFO ordering, and index 1 for FIFO ordering.

Location:
cpukit/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/scheduleredfsmp.h

    r727cf48 r91a2d5e  
    7474
    7575  /**
    76    * @brief Current generation for FIFO/LIFO ordering.
     76   * @brief Current generation for LIFO (index 0) and FIFO (index 1) ordering.
    7777   */
    7878  int64_t generations[ 2 ];
  • cpukit/score/src/scheduleredfsmp.c

    r727cf48 r91a2d5e  
    255255  Scheduler_Context *context,
    256256  Scheduler_Node    *node_base,
    257   size_t             generation_index,
    258   int                increment,
     257  int                generation_index,
    259258  bool            ( *less )( const void *, const RBTree_Node * )
    260259)
     
    264263  uint32_t                       rqi;
    265264  Scheduler_EDF_SMP_Ready_queue *ready_queue;
     265  int                            increment;
    266266  int64_t                        generation;
    267267
     
    269269  node = _Scheduler_EDF_SMP_Node_downcast( node_base );
    270270  rqi = node->ready_queue_index;
     271  increment = ( generation_index << 1 ) - 1;
    271272  ready_queue = &self->Ready[ rqi ];
    272273
     
    331332    context,
    332333    scheduled_to_ready,
    333     0,
    334334    1,
    335335    _Scheduler_EDF_SMP_Less
     
    354354    context,
    355355    node_to_insert,
    356     1,
    357     -1,
     356    0,
    358357    _Scheduler_EDF_SMP_Less_or_equal
    359358  );
     
    368367    context,
    369368    node_to_insert,
    370     0,
    371369    1,
    372370    _Scheduler_EDF_SMP_Less
Note: See TracChangeset for help on using the changeset viewer.