From e6b31b27fbe3cd76534db2d4fc4ef5dcdf0d33b4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 27 May 2015 10:13:58 -0500 Subject: 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. --- cpukit/rtems/src/ratemongetstatus.c | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) (limited to 'cpukit/rtems/src/ratemongetstatus.c') diff --git a/cpukit/rtems/src/ratemongetstatus.c b/cpukit/rtems/src/ratemongetstatus.c index 37d524dc9c..b61e234137 100644 --- a/cpukit/rtems/src/ratemongetstatus.c +++ b/cpukit/rtems/src/ratemongetstatus.c @@ -24,10 +24,7 @@ #include #include #include - -#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - #include -#endif +#include rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, @@ -54,14 +51,8 @@ rtems_status_code rtems_rate_monotonic_get_status( * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { - #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - _Timespec_Set_to_zero( &status->since_last_period ); - _Timespec_Set_to_zero( &status->executed_since_last_period ); - #else - status->since_last_period = 0; - status->executed_since_last_period = 0; - #endif - + _Timespec_Set_to_zero( &status->since_last_period ); + _Timespec_Set_to_zero( &status->executed_since_last_period ); } else { /* @@ -76,17 +67,12 @@ rtems_status_code rtems_rate_monotonic_get_status( return RTEMS_NOT_DEFINED; } - #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - _Timestamp_To_timespec( - &since_last_period, &status->since_last_period - ); - _Timestamp_To_timespec( - &executed, &status->executed_since_last_period - ); - #else - status->since_last_period = since_last_period; - status->executed_since_last_period = executed; - #endif + _Timestamp_To_timespec( + &since_last_period, &status->since_last_period + ); + _Timestamp_To_timespec( + &executed, &status->executed_since_last_period + ); } _Objects_Put( &the_period->Object ); -- cgit v1.2.3