summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulersimplereadyqueueenqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/schedulersimplereadyqueueenqueue.c')
-rw-r--r--cpukit/score/src/schedulersimplereadyqueueenqueue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/score/src/schedulersimplereadyqueueenqueue.c b/cpukit/score/src/schedulersimplereadyqueueenqueue.c
index 67a2d51e84..134f6e8a7a 100644
--- a/cpukit/score/src/schedulersimplereadyqueueenqueue.c
+++ b/cpukit/score/src/schedulersimplereadyqueueenqueue.c
@@ -24,7 +24,8 @@ void _Scheduler_simple_Ready_queue_enqueue(
Thread_Control *the_thread
)
{
- Chain_Control *ready = (Chain_Control *) _Scheduler.information;
+ Scheduler_simple_Control *scheduler =
+ _Scheduler_simple_Instance();
- _Scheduler_simple_Insert_priority_fifo( ready, the_thread );
+ _Scheduler_simple_Insert_priority_fifo( &scheduler->Ready, the_thread );
}