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/libmisc/cpuuse/cpuusagetop.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 'cpukit/libmisc/cpuuse/cpuusagetop.c')
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagetop.c | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/cpukit/libmisc/cpuuse/cpuusagetop.c b/cpukit/libmisc/cpuuse/cpuusagetop.c index e4a47fe6d3..eaa192aa74 100644 --- a/cpukit/libmisc/cpuuse/cpuusagetop.c +++ b/cpukit/libmisc/cpuuse/cpuusagetop.c @@ -144,31 +144,14 @@ static inline bool less_than_uint32_t( uint32_t * lhs, uint32_t * rhs ) return false; } -#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - #define CPU_usage_Equal_to( _lhs, _rhs ) \ - _Timestamp_Equal_to( _lhs, _rhs ) -#else - #define CPU_usage_Equal_to( _lhs, _rhs ) \ - equal_to_uint32_t( _lhs, _rhs ) -#endif +#define CPU_usage_Equal_to( _lhs, _rhs ) \ + _Timestamp_Equal_to( _lhs, _rhs ) -#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - #define CPU_usage_Set_to_zero( _time ) \ - _Timestamp_Set_to_zero( _time ) -#else - #define CPU_usage_Set_to_zero( _time ) \ - do { \ - *_time = 0; \ - } while (0) -#endif +#define CPU_usage_Set_to_zero( _time ) \ + _Timestamp_Set_to_zero( _time ) -#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ - #define CPU_usage_Less_than( _lhs, _rhs ) \ - _Timestamp_Less_than( _lhs, _rhs ) -#else - #define CPU_usage_Less_than( _lhs, _rhs ) \ - less_than_uint32_t( _lhs, _rhs ) -#endif +#define CPU_usage_Less_than( _lhs, _rhs ) \ + _Timestamp_Less_than( _lhs, _rhs ) static void print_memsize(rtems_cpu_usage_data* data, const uint32_t size, const char* label) @@ -581,11 +564,6 @@ void rtems_cpu_usage_top_with_plugin( rtems_printk_plugin_t print ) { -#ifdef __RTEMS_USE_TICKS_FOR_STATISTICS__ - if ( !print ) - return; - (*print)(context, "error: tick kernels not supported\n"); -#else rtems_status_code sc; rtems_task_priority priority; rtems_name name; @@ -714,7 +692,6 @@ void rtems_cpu_usage_top_with_plugin( rtems_event_send(id, RTEMS_EVENT_1); } } -#endif } void rtems_cpu_usage_top( void ) |