summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulersimpleunblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/schedulersimpleunblock.c')
-rw-r--r--cpukit/score/src/schedulersimpleunblock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulersimpleunblock.c b/cpukit/score/src/schedulersimpleunblock.c
index 3a9528fba5..4e49bd6697 100644
--- a/cpukit/score/src/schedulersimpleunblock.c
+++ b/cpukit/score/src/schedulersimpleunblock.c
@@ -26,7 +26,10 @@ void _Scheduler_simple_Unblock(
Thread_Control *the_thread
)
{
- _Scheduler_simple_Ready_queue_enqueue( scheduler, the_thread );
+ Scheduler_simple_Context *context =
+ _Scheduler_simple_Get_context( scheduler );
+
+ _Scheduler_simple_Insert_priority_fifo( &context->Ready, the_thread );
/*
* If the thread that was unblocked is more important than the heir,