diff options
Diffstat (limited to 'cpukit/score/src/schedulercbsunblock.c')
-rw-r--r-- | cpukit/score/src/schedulercbsunblock.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/score/src/schedulercbsunblock.c b/cpukit/score/src/schedulercbsunblock.c index 56b35de8b9..9170889491 100644 --- a/cpukit/score/src/schedulercbsunblock.c +++ b/cpukit/score/src/schedulercbsunblock.c @@ -53,10 +53,11 @@ Scheduler_Void_or_thread _Scheduler_CBS_Unblock( if ( deadline*budget_left > budget*deadline_left ) { /* Put late unblocked task to background until the end of period. */ new_priority = the_thread->Start.initial_priority; - if ( the_thread->real_priority != new_priority ) - the_thread->real_priority = new_priority; - if ( the_thread->current_priority != new_priority ) - _Thread_Change_priority(the_thread, new_priority, true); + the_thread->real_priority = new_priority; + if ( the_thread->current_priority != new_priority ) { + the_thread->current_priority = new_priority; + _Scheduler_Change_priority(the_thread, new_priority, true); + } } } |