Ignore:
Timestamp:
Aug 9, 2013, 12:16:59 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c1a356e9
Parents:
e00b0438
git-author:
Sebastian Huber <sebastian.huber@…> (08/09/13 12:16:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/20/13 08:14:03)
Message:

score: _Scheduler_priority_Ready_queue_initialize()

Move workspace allocation to _Scheduler_priority_Initialize().

File:
1 edited

Legend:

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

    re00b0438 ra78e575  
    2020
    2121#include <rtems/score/schedulerpriorityimpl.h>
     22#include <rtems/score/wkspace.h>
    2223
    2324/* Instantiate any global variables needed by the priority scheduler */
     
    2829void _Scheduler_priority_Initialize(void)
    2930{
    30   _Scheduler_priority_Ready_queue_initialize();
     31  /* allocate ready queue structures */
     32  Chain_Control *ready_queues = _Workspace_Allocate_or_fatal_error(
     33    ((size_t) PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control)
     34  );
     35
     36  _Scheduler_priority_Ready_queue_initialize( ready_queues );
    3137  _Priority_bit_map_Handler_initialization();
     38
     39  _Scheduler.information = ready_queues;
    3240}
Note: See TracChangeset for help on using the changeset viewer.