source: rtems/cpukit/score/src/scheduler.c @ 010192d

4.115
Last change on this file since 010192d was 010192d, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/11 at 22:21:44

2011-02-17 Joel Sherrill <joel.sherrill@…>

  • sapi/include/confdefs.h, sapi/include/rtems/config.h, score/include/rtems/score/scheduler.h, score/include/rtems/score/schedulerpriority.h, score/inline/rtems/score/scheduler.inl, score/inline/rtems/score/schedulerpriority.inl, score/src/scheduler.c, score/src/schedulerpriority.c, score/src/schedulerpriorityblock.c, score/src/schedulerpriorityschedule.c, score/src/schedulerprioritythreadschedulerallocate.c, score/src/schedulerprioritythreadschedulerfree.c, score/src/schedulerprioritythreadschedulerupdate.c, score/src/schedulerpriorityunblock.c, score/src/schedulerpriorityyield.c, score/src/threadchangepriority.c, score/src/threadclearstate.c, score/src/threadclose.c, score/src/threadinitialize.c, score/src/threadready.c, score/src/threadresume.c, score/src/threadsetpriority.c, score/src/threadsetstate.c, score/src/threadsuspend.c: Simplify the pluggable scheduler interface. Its configuration made a table of available schedulers and set a pointer to one of the. This was heavy handed since you can only use one scheduler in an application. This configuration mechanism resulted in a scheduler pointer being passed around when you could put all scheduler configuration in an initialized structure.
  • Property mode set to 100644
File size: 989 bytes
Line 
1/*
2 *  Scheduler Handler
3 *
4 *  Copyright (C) 2010 Gedare Bloom.
5 *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <rtems/system.h>
19#include <rtems/config.h>
20#include <rtems/score/chain.h>
21#include <rtems/score/isr.h>
22#include <rtems/score/object.h>
23#include <rtems/score/scheduler.h>
24#include <rtems/score/schedulerpriority.h>
25#include <rtems/score/states.h>
26#include <rtems/score/thread.h>
27
28/*
29 *  _Scheduler_Handler_initialization
30 *
31 *  This routine initializes the scheduler by calling the scheduler
32 *  initialize function registered in the Configuration Scheduler Table.
33 *
34 *  Input parameters: NONE
35 *
36 *  Output parameters: NONE
37 */
38void _Scheduler_Handler_initialization(void)
39{
40  (*_Scheduler.Operations.initialize)();
41}
Note: See TracBrowser for help on using the repository browser.