Ignore:
Timestamp:
May 27, 2015, 3:13:58 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
e0938c2
Parents:
80fca28
git-author:
Joel Sherrill <joel.sherrill@…> (05/27/15 15:13:58)
git-committer:
Joel Sherrill <joel.sherrill@…> (06/15/15 18:20:17)
Message:

Remove use ticks for statistics configure option.

This was obsolete and broken based upon recent time keeping changes.

Thie build option was previously enabled by adding
USE_TICKS_FOR_STATISTICS=1 to the configure command line.

This propagated into the code as preprocessor conditionals
using the RTEMS_USE_TICKS_FOR_STATISTICS conditional.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/ratemongetstatus.c

    r80fca28 re6b31b27  
    2525#include <rtems/rtems/ratemonimpl.h>
    2626#include <rtems/score/thread.h>
    27 
    28 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
    29   #include <rtems/score/timespec.h>
    30 #endif
     27#include <rtems/score/timespec.h>
    3128
    3229rtems_status_code rtems_rate_monotonic_get_status(
     
    5552       */
    5653      if ( status->state == RATE_MONOTONIC_INACTIVE ) {
    57         #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
    58           _Timespec_Set_to_zero( &status->since_last_period );
    59           _Timespec_Set_to_zero( &status->executed_since_last_period );
    60         #else
    61           status->since_last_period = 0;
    62           status->executed_since_last_period = 0;
    63         #endif
    64 
     54        _Timespec_Set_to_zero( &status->since_last_period );
     55        _Timespec_Set_to_zero( &status->executed_since_last_period );
    6556      } else {
    6657
     
    7768        }
    7869
    79         #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
    80           _Timestamp_To_timespec(
    81             &since_last_period, &status->since_last_period
    82           );
    83           _Timestamp_To_timespec(
    84             &executed, &status->executed_since_last_period
    85           );
    86         #else
    87           status->since_last_period = since_last_period;
    88           status->executed_since_last_period = executed;
    89         #endif
     70        _Timestamp_To_timespec(
     71          &since_last_period, &status->since_last_period
     72        );
     73        _Timestamp_To_timespec(
     74          &executed, &status->executed_since_last_period
     75        );
    9076      }
    9177
Note: See TracChangeset for help on using the changeset viewer.