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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/src/schedulersimpleunblock.c b/cpukit/score/src/schedulersimpleunblock.c
index 5540e20e87..2f5c8636f5 100644
--- a/cpukit/score/src/schedulersimpleunblock.c
+++ b/cpukit/score/src/schedulersimpleunblock.c
@@ -28,13 +28,15 @@ void _Scheduler_simple_Unblock(
)
{
Scheduler_simple_Context *context;
- Priority_Control priority;
+ unsigned int priority;
+ unsigned int insert_priority;
(void) node;
context = _Scheduler_simple_Get_context( scheduler );
- _Scheduler_simple_Insert_priority_fifo( &context->Ready, the_thread );
priority = _Thread_Get_priority( the_thread );
+ insert_priority = SCHEDULER_PRIORITY_APPEND( priority );
+ _Scheduler_simple_Insert( &context->Ready, the_thread, insert_priority );
/*
* If the thread that was unblocked is more important than the heir,