summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/schedulersimpleimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-03 12:02:09 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-04 11:01:18 +0200
commit439c494fe20f474984c22a333613c33fac5585eb (patch)
tree6923313f5eb446e2bdbb7b9a340c7b32205b93d7 /cpukit/score/include/rtems/score/schedulersimpleimpl.h
parentscore: Add and use Scheduler_EDF_Control (diff)
downloadrtems-439c494fe20f474984c22a333613c33fac5585eb.tar.bz2
score: Add and use Scheduler_simple_Control
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulersimpleimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/schedulersimpleimpl.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/schedulersimpleimpl.h b/cpukit/score/include/rtems/score/schedulersimpleimpl.h
index 25fbbc7b3c..c51c6c3f0e 100644
--- a/cpukit/score/include/rtems/score/schedulersimpleimpl.h
+++ b/cpukit/score/include/rtems/score/schedulersimpleimpl.h
@@ -32,6 +32,11 @@ extern "C" {
*/
/**@{**/
+RTEMS_INLINE_ROUTINE Scheduler_simple_Control *_Scheduler_simple_Instance( void )
+{
+ return _Scheduler.information;
+}
+
/**
* This routine puts @a the_thread on to the ready queue.
*
@@ -101,9 +106,8 @@ RTEMS_INLINE_ROUTINE void _Scheduler_simple_Schedule_body(
bool force_dispatch
)
{
- Thread_Control *heir = (Thread_Control *) _Chain_First(
- (Chain_Control *) _Scheduler.information
- );
+ Scheduler_simple_Control *scheduler = _Scheduler_simple_Instance();
+ Thread_Control *heir = (Thread_Control *) _Chain_First( &scheduler->Ready );
( void ) thread;