Changeset eea7c937 in rtems


Ignore:
Timestamp:
Nov 19, 2013, 3:09:17 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
833dd90
Parents:
14876018
git-author:
Sebastian Huber <sebastian.huber@…> (11/19/13 15:09:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/21/13 11:58:45)
Message:

scheduler/EDF: Use unprotected insert and extract

Interrupts are disabled by the caller _Thread_Change_priority() or
_Thread_Set_transient() or directly in the scheduler operation. Thus
there is no need to use protected variants.

Location:
cpukit/score/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/scheduleredfenqueue.c

    r14876018 reea7c937  
    3232  RBTree_Node *node = &(sched_info->Node);
    3333
    34   _RBTree_Insert( &_Scheduler_EDF_Ready_queue, node );
     34  _RBTree_Insert_unprotected( &_Scheduler_EDF_Ready_queue, node );
    3535  sched_info->queue_state = SCHEDULER_EDF_QUEUE_STATE_YES;
    3636}
  • cpukit/score/src/scheduleredfextract.c

    r14876018 reea7c937  
    3232  RBTree_Node *node = &(sched_info->Node);
    3333
    34   _RBTree_Extract( &_Scheduler_EDF_Ready_queue, node );
     34  _RBTree_Extract_unprotected( &_Scheduler_EDF_Ready_queue, node );
    3535  sched_info->queue_state = SCHEDULER_EDF_QUEUE_STATE_NOT_PRESENTLY;
    3636}
  • cpukit/score/src/scheduleredfyield.c

    r14876018 reea7c937  
    3636   * with the same priority in case there are such ones.
    3737   */
    38   _RBTree_Extract( &_Scheduler_EDF_Ready_queue, thread_node );
    39   _RBTree_Insert( &_Scheduler_EDF_Ready_queue, thread_node );
     38  _RBTree_Extract_unprotected( &_Scheduler_EDF_Ready_queue, thread_node );
     39  _RBTree_Insert_unprotected( &_Scheduler_EDF_Ready_queue, thread_node );
    4040
    4141  _ISR_Flash( level );
Note: See TracChangeset for help on using the changeset viewer.