summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2012-05-02 11:06:29 -0400
committerGedare Bloom <gedare@rtems.org>2012-05-08 18:40:44 -0400
commitbc96bad6ca61ee26acf9ec655c1ee8c07843784b (patch)
tree85bf182db3c18fcb272d7f82faac336ca270710c
parent19a3f501bb68492c333f6fe0e26176e323a86387 (diff)
downloadrtems-bc96bad6ca61ee26acf9ec655c1ee8c07843784b.tar.bz2
score/scheduling: Use RBTree_First instead of Peek in EDF scheduler.
-rw-r--r--cpukit/score/src/scheduleredfschedule.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/cpukit/score/src/scheduleredfschedule.c b/cpukit/score/src/scheduleredfschedule.c
index 1482be8207..a45aca41d3 100644
--- a/cpukit/score/src/scheduleredfschedule.c
+++ b/cpukit/score/src/scheduleredfschedule.c
@@ -1,12 +1,10 @@
/*
* Copyright (C) 2011 Petr Benes.
- * Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
+ * Copyright (C) 2011-2012 On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
- *
- * $Id$
*/
#if HAVE_CONFIG_H
@@ -19,10 +17,9 @@
void _Scheduler_EDF_Schedule(void)
{
- RBTree_Node *first_node =
- _RBTree_Peek(&_Scheduler_EDF_Ready_queue, RBT_LEFT);
+ RBTree_Node *first = _RBTree_First(&_Scheduler_EDF_Ready_queue, RBT_LEFT);
Scheduler_EDF_Per_thread *sched_info =
- _RBTree_Container_of(first_node, Scheduler_EDF_Per_thread, Node);
+ _RBTree_Container_of(first, Scheduler_EDF_Per_thread, Node);
_Thread_Heir = (Thread_Control *) sched_info->thread;
}