source: rtems/cpukit/score/src/schedulersimple.c @ 4fc370e

4.115
Last change on this file since 4fc370e was 1b475860, checked in by Christopher Kerl <zargyyoyo@…>, on 11/29/12 at 19:39:17

score misc: Score misc: Clean up Doxygen #6 (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/7976215

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 *
4 * @brief Scheduler Simple Functions
5 *
6 * @ingroup ScoreScheduler
7 */
8
9/*
10 *  COPYRIGHT (c) 2011.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/system.h>
23#include <rtems/config.h>
24#include <rtems/score/chain.h>
25#include <rtems/score/scheduler.h>
26#include <rtems/score/schedulersimple.h>
27#include <rtems/score/thread.h>
28#include <rtems/score/wkspace.h>
29
30void * _Scheduler_simple_Allocate(
31  Thread_Control *the_thread
32)
33{
34  return (void*)-1; /* maybe pick an appropriate poison value */
35}
36
37void _Scheduler_simple_Update(
38  Thread_Control *the_thread
39)
40{
41}
42
43void _Scheduler_simple_Free(
44  Thread_Control *the_thread
45)
46{
47}
48
49void _Scheduler_simple_Initialize ( void )
50{
51  void *f;
52
53  /*
54   * Initialize Ready Queue
55   */
56
57  /* allocate ready queue structures */
58  f = _Workspace_Allocate_or_fatal_error( sizeof(Chain_Control) );
59  _Scheduler.information = f;
60
61  /* initialize ready queue structure */
62  _Chain_Initialize_empty( (Chain_Control *)f );
63}
Note: See TracBrowser for help on using the repository browser.