From 494c2e300215c4bc539d243d6a5d060e0e2f2ef2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 1 Apr 2014 11:48:59 +0200 Subject: 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. --- cpukit/score/src/schedulerpriorityenqueue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/schedulerpriorityenqueue.c') diff --git a/cpukit/score/src/schedulerpriorityenqueue.c b/cpukit/score/src/schedulerpriorityenqueue.c index ff1c69d010..54375cde2d 100644 --- a/cpukit/score/src/schedulerpriorityenqueue.c +++ b/cpukit/score/src/schedulerpriorityenqueue.c @@ -24,5 +24,7 @@ void _Scheduler_priority_Enqueue( Thread_Control *the_thread ) { - _Scheduler_priority_Ready_queue_enqueue( the_thread ); + Scheduler_priority_Control *scheduler = _Scheduler_priority_Instance(); + + _Scheduler_priority_Ready_queue_enqueue( the_thread, &scheduler->Bit_map ); } -- cgit v1.2.3