summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerpriorityupdate.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-01 11:48:59 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-03 11:13:26 +0200
commit494c2e300215c4bc539d243d6a5d060e0e2f2ef2 (patch)
tree8ba7c54667cad8331430bf719b4a1bd94ed3ac8b /cpukit/score/src/schedulerpriorityupdate.c
parentscore: Rename Priority_bit_map_Control (diff)
downloadrtems-494c2e300215c4bc539d243d6a5d060e0e2f2ef2.tar.bz2
score: Move priority bit map to scheduler instance
Delete global variables _Priority_Major_bit_map and _Priority_Bit_map. This makes it possible to use multiple priority scheduler instances for example with clustered/partitioned scheduling on SMP.
Diffstat (limited to 'cpukit/score/src/schedulerpriorityupdate.c')
-rw-r--r--cpukit/score/src/schedulerpriorityupdate.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/score/src/schedulerpriorityupdate.c b/cpukit/score/src/schedulerpriorityupdate.c
index 8ebaac7f75..a56acd08d1 100644
--- a/cpukit/score/src/schedulerpriorityupdate.c
+++ b/cpukit/score/src/schedulerpriorityupdate.c
@@ -25,7 +25,11 @@ void _Scheduler_priority_Update(
Thread_Control *the_thread
)
{
- Chain_Control *ready_queues = _Scheduler_priority_Get_ready_queues();
+ Scheduler_priority_Control *scheduler = _Scheduler_priority_Instance();
- _Scheduler_priority_Update_body( the_thread, ready_queues );
+ _Scheduler_priority_Update_body(
+ the_thread,
+ &scheduler->Bit_map,
+ &scheduler->Ready[ 0 ]
+ );
}