Changeset 300eaad in rtems


Ignore:
Timestamp:
Mar 21, 2016, 9:41:31 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
875c26d
Parents:
610e87d
git-author:
Sebastian Huber <sebastian.huber@…> (03/21/16 09:41:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/21/16 09:44:35)
Message:

rtems: Delete Rate_monotonic_Period_time_t

Variables with this type directly used the _Timestamp_*() functions.

Location:
cpukit/rtems
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/include/rtems/rtems/ratemon.h

    r610e87d r300eaad  
    7171 */
    7272#include <rtems/score/timestamp.h>
    73 
    74 typedef Timestamp_Control Rate_monotonic_Period_time_t;
    7573
    7674/**
     
    157155
    158156  /** This field contains the least amount of CPU time used in a period. */
    159   Timestamp_Control                    min_cpu_time;
     157  Timestamp_Control min_cpu_time;
    160158  /** This field contains the highest amount of CPU time used in a period. */
    161   Timestamp_Control                    max_cpu_time;
     159  Timestamp_Control max_cpu_time;
    162160  /** This field contains the total amount of wall time used in a period. */
    163   Timestamp_Control                    total_cpu_time;
     161  Timestamp_Control total_cpu_time;
    164162
    165163  /** This field contains the least amount of wall time used in a period. */
    166   Rate_monotonic_Period_time_t        min_wall_time;
     164  Timestamp_Control min_wall_time;
    167165  /** This field contains the highest amount of wall time used in a period. */
    168   Rate_monotonic_Period_time_t        max_wall_time;
     166  Timestamp_Control max_wall_time;
    169167  /** This field contains the total amount of CPU time used in a period. */
    170   Rate_monotonic_Period_time_t        total_wall_time;
     168  Timestamp_Control total_wall_time;
    171169}  Rate_monotonic_Statistics;
    172170
     
    233231   * was initiated.  It is used to compute the period's statistics.
    234232   */
    235   Rate_monotonic_Period_time_t            time_period_initiated;
     233  Timestamp_Control                       time_period_initiated;
    236234
    237235  /**
  • cpukit/rtems/include/rtems/rtems/ratemonimpl.h

    r610e87d r300eaad  
    154154 */
    155155bool _Rate_monotonic_Get_status(
    156   Rate_monotonic_Control        *the_period,
    157   Rate_monotonic_Period_time_t  *wall_since_last_period,
    158   Timestamp_Control             *cpu_since_last_period
     156  const Rate_monotonic_Control *the_period,
     157  Timestamp_Control            *wall_since_last_period,
     158  Timestamp_Control            *cpu_since_last_period
    159159);
    160160
  • cpukit/rtems/src/ratemongetstatus.c

    r610e87d r300eaad  
    3232)
    3333{
    34   Timestamp_Control              executed;
    35   Objects_Locations              location;
    36   Rate_monotonic_Period_time_t   since_last_period;
    37   Rate_monotonic_Control        *the_period;
    38   bool                           valid_status;
     34  Timestamp_Control       executed;
     35  Objects_Locations       location;
     36  Timestamp_Control       since_last_period;
     37  Rate_monotonic_Control *the_period;
     38  bool                    valid_status;
    3939
    4040  if ( !status )
  • cpukit/rtems/src/ratemonperiod.c

    r610e87d r300eaad  
    2626
    2727bool _Rate_monotonic_Get_status(
    28   Rate_monotonic_Control        *the_period,
    29   Rate_monotonic_Period_time_t  *wall_since_last_period,
    30   Timestamp_Control             *cpu_since_last_period
     28  const Rate_monotonic_Control *the_period,
     29  Timestamp_Control            *wall_since_last_period,
     30  Timestamp_Control            *cpu_since_last_period
    3131)
    3232{
     
    9393)
    9494{
    95   Timestamp_Control               executed;
    96   Rate_monotonic_Period_time_t    since_last_period;
    97   Rate_monotonic_Statistics      *stats;
    98   bool                            valid_status;
     95  Timestamp_Control          executed;
     96  Timestamp_Control          since_last_period;
     97  Rate_monotonic_Statistics *stats;
     98  bool                       valid_status;
    9999
    100100  /*
Note: See TracChangeset for help on using the changeset viewer.