Changeset bc96bad6 in rtems


Ignore:
Timestamp:
May 2, 2012, 3:06:29 PM (7 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
8712622
Parents:
19a3f50
git-author:
Gedare Bloom <gedare@…> (05/02/12 15:06:29)
git-committer:
Gedare Bloom <gedare@…> (05/08/12 22:40:44)
Message:

score/scheduling: Use RBTree_First instead of Peek in EDF scheduler.

File:
1 edited

Legend:

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

    r19a3f50 rbc96bad6  
    11/*
    22 *  Copyright (C) 2011 Petr Benes.
    3  *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
     3 *  Copyright (C) 2011-2012 On-Line Applications Research Corporation (OAR).
    44 *
    55 *  The license and distribution terms for this file may be
    66 *  found in the file LICENSE in this distribution or at
    77 *  http://www.rtems.com/license/LICENSE.
    8  *
    9  *  $Id$
    108 */
    119
     
    2018void _Scheduler_EDF_Schedule(void)
    2119{
    22   RBTree_Node *first_node =
    23     _RBTree_Peek(&_Scheduler_EDF_Ready_queue, RBT_LEFT);
     20  RBTree_Node *first = _RBTree_First(&_Scheduler_EDF_Ready_queue, RBT_LEFT);
    2421  Scheduler_EDF_Per_thread *sched_info =
    25     _RBTree_Container_of(first_node, Scheduler_EDF_Per_thread, Node);
     22    _RBTree_Container_of(first, Scheduler_EDF_Per_thread, Node);
    2623
    2724  _Thread_Heir = (Thread_Control *) sched_info->thread;
Note: See TracChangeset for help on using the changeset viewer.