diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-10 16:05:17 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-10 16:05:17 +0000 |
commit | f6ef96c2739580c6d91e7fadd22859c2910d4711 (patch) | |
tree | 5a2f2145efc932024850a5df3119f4cb68ae10f5 /testsuites/samples/ticker/system.h | |
parent | 2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-f6ef96c2739580c6d91e7fadd22859c2910d4711.tar.bz2 |
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/system.h, ticker/system.h, ticker/ticker.scn: Convert calls to
legacy routine rtems_clock_get( RTEMS_CLOCK_GET_xxx, ..) to
rtems_clock_get_xxx().
Diffstat (limited to 'testsuites/samples/ticker/system.h')
-rw-r--r-- | testsuites/samples/ticker/system.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuites/samples/ticker/system.h b/testsuites/samples/ticker/system.h index 4f72faa49d..a87ba2c901 100644 --- a/testsuites/samples/ticker/system.h +++ b/testsuites/samples/ticker/system.h @@ -94,11 +94,9 @@ extern rtems_name Task_name[ 4 ]; /* array of task names */ 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; + return rtems_clock_get_ticks_per_second(); } - /* * This allows us to view the "Test_task" instantiations as a set * of numbered tasks by eliminating the number of application |