diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-12 20:50:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-12 20:50:51 +0000 |
commit | 4e76c71cd0a2b9f8a5f213c91355bbe2fd257375 (patch) | |
tree | 87710fa4c04999ff1c39957517d445d53ace90d6 | |
parent | 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-4e76c71cd0a2b9f8a5f213c91355bbe2fd257375.tar.bz2 |
2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/tmacros.h: Eliminate test routines TICKS_PER_SECOND
and get_ticks_per_second() in favor of new
rtems_clock_get_ticks_per_second().
-rw-r--r-- | testsuites/ChangeLog | 6 | ||||
-rw-r--r-- | testsuites/support/include/tmacros.h | 11 |
2 files changed, 7 insertions, 10 deletions
diff --git a/testsuites/ChangeLog b/testsuites/ChangeLog index 6cc1988e47..32c66929e0 100644 --- a/testsuites/ChangeLog +++ b/testsuites/ChangeLog @@ -1,3 +1,9 @@ +2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com> + + * support/include/tmacros.h: Eliminate test routines TICKS_PER_SECOND + and get_ticks_per_second() in favor of new + rtems_clock_get_ticks_per_second(). + 2009-08-06 Joel Sherrill <joel.sherrill@OARcorp.com> * support/src/test_support.c: Tinker with longest valid name. diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h index 71792bd754..5623131550 100644 --- a/testsuites/support/include/tmacros.h +++ b/testsuites/support/include/tmacros.h @@ -3,7 +3,7 @@ * This include file contains macros which are useful in the RTEMS * test suites. * - * COPYRIGHT (c) 1989-2008. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -238,15 +238,6 @@ extern "C" { rtems_configuration_get_rtems_api_configuration()-> \ number_of_initialization_tasks ) -static inline uint32_t get_ticks_per_second( void ) -{ - rtems_interval ticks_per_second; - (void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_second ); - return ticks_per_second; -} - -#define TICKS_PER_SECOND get_ticks_per_second() - #define rtems_test_assert(__exp) \ if (!(__exp)) { \ printf( "%s: %d %s\n", __FILE__, __LINE__, #__exp ); \ |