source: rtems/cpukit/rtems/src/ratemon.c @ 66cb142

5
Last change on this file since 66cb142 was f05eeb2, checked in by Sebastian Huber <sebastian.huber@…>, on 04/19/16 at 11:39:00

score: Simplify _Objects_Initialize_information()

Remove unused supports_global parameter. Convert
_Objects_Initialize_information() to a macro to avoid use of
RTEMS_MULTIPROCESSING define for each caller.

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[a6500136]1/**
2 *  @file
[ac7d5ef0]3 *
[a6500136]4 *  @brief Rate Monotonic Manager Initialization
5 *  @ingroup ClassicRateMon
6 */
7
8/*
[db80f11]9 *  COPYRIGHT (c) 1989-2008.
[ac7d5ef0]10 *  On-Line Applications Research Corporation (OAR).
11 *
[98e4ebf5]12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
[c499856]14 *  http://www.rtems.org/license/LICENSE.
[ac7d5ef0]15 */
16
[1095ec1]17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
[ac7d5ef0]21#include <rtems/system.h>
[db80f11]22#include <rtems/config.h>
[b377e3f]23#include <rtems/sysinit.h>
[3a4ae6c]24#include <rtems/rtems/status.h>
25#include <rtems/rtems/support.h>
[ecdcf01]26#include <rtems/rtems/ratemonimpl.h>
[ac7d5ef0]27
[b377e3f]28Objects_Information _Rate_monotonic_Information;
29
30static void _Rate_monotonic_Manager_initialization(void)
[ac7d5ef0]31{
32  _Objects_Initialize_information(
[db80f11]33    &_Rate_monotonic_Information,    /* object information table */
34    OBJECTS_CLASSIC_API,             /* object API */
35    OBJECTS_RTEMS_PERIODS,           /* object class */
36    Configuration_RTEMS_API.maximum_periods,
37                                     /* maximum objects of this class */
38    sizeof( Rate_monotonic_Control ),/* size of this object's control block */
[eaef4657]39    false,                           /* true if the name is a string */
[f05eeb2]40    RTEMS_MAXIMUM_NAME_LENGTH,       /* maximum length of an object name */
[db80f11]41    NULL                             /* Proxy extraction support callout */
[ac7d5ef0]42  );
43}
[b377e3f]44
45RTEMS_SYSINIT_ITEM(
46  _Rate_monotonic_Manager_initialization,
47  RTEMS_SYSINIT_CLASSIC_RATE_MONOTONIC,
48  RTEMS_SYSINIT_ORDER_MIDDLE
49);
Note: See TracBrowser for help on using the repository browser.