summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulercbsunblock.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-20 13:41:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-24 14:35:05 +0100
commit4054c9164601830c7ead74be612d33c4717d8ea6 (patch)
tree10b417daff4d9013a3fda4ee6f42895129259984 /cpukit/score/src/schedulercbsunblock.c
parentscore: Use a dedicated ISR lock for thread queues (diff)
downloadrtems-4054c9164601830c7ead74be612d33c4717d8ea6.tar.bz2
score: Add scheduler acquire/release
This is currently a global lock for all scheduler instances. It should get replaced with one lock per scheduler instance in the future. Update #2273.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/schedulercbsunblock.c9
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);
+ }
}
}