diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-11 11:54:49 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-12 13:24:41 +0200 |
commit | bd12dda405e1bab16c522f7ef0dd2b455230d269 (patch) | |
tree | c644df77b8512e1e211bfae39587511d0774f0d8 /cpukit/score/src/schedulercbsunblock.c | |
parent | rtems: Avoid Giant lock rtems_task_is_suspended() (diff) | |
download | rtems-bd12dda405e1bab16c522f7ef0dd2b455230d269.tar.bz2 |
score: Use thread state lock for current state
In addition protect scheduler of thread by thread state lock. Enables
use of scheduler per-instance locks.
Update #2555.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/schedulercbsunblock.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulercbsunblock.c b/cpukit/score/src/schedulercbsunblock.c index 9170889491..7898588bf2 100644 --- a/cpukit/score/src/schedulercbsunblock.c +++ b/cpukit/score/src/schedulercbsunblock.c @@ -56,7 +56,12 @@ Scheduler_Void_or_thread _Scheduler_CBS_Unblock( 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); + _Scheduler_EDF_Change_priority( + scheduler, + the_thread, + new_priority, + true + ); } } } |