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/fileio | |
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/fileio')
-rw-r--r-- | testsuites/samples/fileio/init.c | 6 | ||||
-rw-r--r-- | testsuites/samples/fileio/system.h | 10 |
2 files changed, 3 insertions, 13 deletions
diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c index 5af153a07e..b2fe8cab6d 100644 --- a/testsuites/samples/fileio/init.c +++ b/testsuites/samples/fileio/init.c @@ -296,7 +296,7 @@ void fileio_list_file(void) printf("\n ******** End of file reached, flen = %d\n",flen); close(fd); - rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_sec); + ticks_per_sec = rtems_clock_get_ticks_per_second(); printf("time elapsed for read: %g seconds\n", ((double)curr_tick-start_tick)/ticks_per_sec); } @@ -361,7 +361,7 @@ void fileio_write_file(void) /* * get number of ticks per second */ - rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_sec); + ticks_per_sec = rtems_clock_get_ticks_per_second(); /* * get path to file to write @@ -520,7 +520,7 @@ void fileio_read_file(void) /* * get number of ticks per second */ - rtems_clock_get(RTEMS_CLOCK_GET_TICKS_PER_SECOND, &ticks_per_sec); + ticks_per_sec = rtems_clock_get_ticks_per_second(); /* * get path to file to read diff --git a/testsuites/samples/fileio/system.h b/testsuites/samples/fileio/system.h index 3620eacdb2..f6663d8fd5 100644 --- a/testsuites/samples/fileio/system.h +++ b/testsuites/samples/fileio/system.h @@ -101,16 +101,6 @@ rtems_task Init( } 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. |