Ignore:
Timestamp:
Apr 1, 2014, 9:48:59 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
1a6093d
Parents:
f570b071
git-author:
Sebastian Huber <sebastian.huber@…> (04/01/14 09:48:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/03/14 09:13:26)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/schedulerpriority.c

    rf570b071 r494c2e3  
    2424void _Scheduler_priority_Initialize(void)
    2525{
    26   /* allocate ready queue structures */
    27   Chain_Control *ready_queues = _Workspace_Allocate_or_fatal_error(
    28     ((size_t) PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control)
     26  Scheduler_priority_Control *self = _Workspace_Allocate_or_fatal_error(
     27    sizeof( *self ) + PRIORITY_MAXIMUM * sizeof( Chain_Control )
    2928  );
    3029
    31   _Scheduler_priority_Ready_queue_initialize( ready_queues );
     30  _Priority_bit_map_Initialize( &self->Bit_map );
     31  _Scheduler_priority_Ready_queue_initialize( &self->Ready[ 0 ] );
    3232
    33   _Scheduler.information = ready_queues;
     33  _Scheduler.information = self;
    3434}
Note: See TracChangeset for help on using the changeset viewer.