diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-05-27 10:13:58 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-06-15 13:20:17 -0500 |
commit | e6b31b27fbe3cd76534db2d4fc4ef5dcdf0d33b4 (patch) | |
tree | e833cd29335dedfba764815c61a92c0a4cab1347 /cpukit/rtems/src/ratemongetstatistics.c | |
parent | score: Add _Watchdog_Preinitialize() (diff) | |
download | rtems-e6b31b27fbe3cd76534db2d4fc4ef5dcdf0d33b4.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/src/ratemongetstatistics.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/cpukit/rtems/src/ratemongetstatistics.c b/cpukit/rtems/src/ratemongetstatistics.c index d106f045b0..6644562ba0 100644 --- a/cpukit/rtems/src/ratemongetstatistics.c +++ b/cpukit/rtems/src/ratemongetstatistics.c @@ -46,21 +46,12 @@ rtems_status_code rtems_rate_monotonic_get_statistics( src = &the_period->Statistics; dst->count = src->count; dst->missed_count = src->missed_count; - #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - _Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time ); - _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); - _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); - _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); - _Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time ); - _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time ); - #else - dst->min_cpu_time = src->min_cpu_time; - dst->max_cpu_time = src->max_cpu_time; - dst->total_cpu_time = src->total_cpu_time; - dst->min_wall_time = src->min_wall_time; - dst->max_wall_time = src->max_wall_time; - dst->total_wall_time = src->total_wall_time; - #endif + _Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time ); + _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); + _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); + _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); + _Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time ); + _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time ); _Objects_Put( &the_period->Object ); return RTEMS_SUCCESSFUL; |