diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-12 20:50:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-12 20:50:38 +0000 |
commit | 99f0971146d4e621dbb7e242d7f5e3eb382a5ff9 (patch) | |
tree | 19f22c4c0a32c909296b4989f2d2e51cab3d5ad7 /testsuites/samples/ticker | |
parent | 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-99f0971146d4e621dbb7e242d7f5e3eb382a5ff9.tar.bz2 |
2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* cdtest/main.cc, fileio/init.c, fileio/system.h, pppd/pppdapp.c,
ticker/system.h, ticker/tasks.c: Eliminate test routines
TICKS_PER_SECOND and get_ticks_per_second() in favor of new
rtems_clock_get_ticks_per_second().
Diffstat (limited to 'testsuites/samples/ticker')
-rw-r--r-- | testsuites/samples/ticker/system.h | 11 | ||||
-rw-r--r-- | testsuites/samples/ticker/tasks.c | 5 |
2 files changed, 4 insertions, 12 deletions
diff --git a/testsuites/samples/ticker/system.h b/testsuites/samples/ticker/system.h index a87ba2c901..ec17872b87 100644 --- a/testsuites/samples/ticker/system.h +++ b/testsuites/samples/ticker/system.h @@ -3,7 +3,7 @@ * This include file contains information that is included in every * function in the test set. * - * COPYRIGHT (c) 1989-2008. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -89,15 +89,6 @@ extern rtems_name Task_name[ 4 ]; /* array of task names */ } while (0) /* - * static inline routine to make obtaining ticks per second easier. - */ - -static inline uint32_t get_ticks_per_second( void ) -{ - 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 * tasks created. diff --git a/testsuites/samples/ticker/tasks.c b/testsuites/samples/ticker/tasks.c index fabdbf7218..2d6c2e0f8e 100644 --- a/testsuites/samples/ticker/tasks.c +++ b/testsuites/samples/ticker/tasks.c @@ -7,7 +7,7 @@ * * Output parameters: NONE * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -38,6 +38,7 @@ rtems_task Test_task( } put_name( Task_name[ task_index ], FALSE ); print_time( " - rtems_clock_get_tod - ", &time, "\n" ); - status = rtems_task_wake_after( task_index * 5 * get_ticks_per_second() ); + status = rtems_task_wake_after( + task_index * 5 * rtems_clock_get_ticks_per_second() ); } } |