diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-12 20:50:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-12 20:50:29 +0000 |
commit | 9992cac4967f5d648c29dc9dba6ec4e8353f92af (patch) | |
tree | e44dc5dde56e1e87cf5ecc4ea9870a7eb6ff0907 /testsuites/mptests/mp13 | |
parent | 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-9992cac4967f5d648c29dc9dba6ec4e8353f92af.tar.bz2 |
2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* mp01/task1.c, mp02/task1.c, mp03/task1.c, mp05/task1.c, mp06/task1.c,
mp07/task1.c, mp08/task1.c, mp09/recvmsg.c, mp09/sendmsg.c,
mp09/task1.c, mp10/init.c, mp12/init.c, mp13/init.c, mp13/task1.c,
mp13/task2.c, mp14/evtask1.c, mp14/init.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/mptests/mp13')
-rw-r--r-- | testsuites/mptests/mp13/init.c | 4 | ||||
-rw-r--r-- | testsuites/mptests/mp13/task1.c | 4 | ||||
-rw-r--r-- | testsuites/mptests/mp13/task2.c | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/testsuites/mptests/mp13/init.c b/testsuites/mptests/mp13/init.c index 9f5faa5073..1b82853028 100644 --- a/testsuites/mptests/mp13/init.c +++ b/testsuites/mptests/mp13/init.c @@ -11,7 +11,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 @@ -102,7 +102,7 @@ rtems_task Init( directive_failed( status, "rtems_task_start" ); if ( Multiprocessing_configuration.node == 1 ) { - status = rtems_task_wake_after( 5 * TICKS_PER_SECOND ); + status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after" ); puts( "*** END OF TEST 13 ***" ); diff --git a/testsuites/mptests/mp13/task1.c b/testsuites/mptests/mp13/task1.c index 23d744a2e8..08c1485a9d 100644 --- a/testsuites/mptests/mp13/task1.c +++ b/testsuites/mptests/mp13/task1.c @@ -9,7 +9,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 @@ -52,7 +52,7 @@ rtems_task Test_task1( directive_failed( status, "rtems_message_queue_receive" ); } - status = rtems_task_wake_after( TICKS_PER_SECOND ); + status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after" ); puts( "Receiving message ..." ); diff --git a/testsuites/mptests/mp13/task2.c b/testsuites/mptests/mp13/task2.c index 094dd7a8bc..89deab59b8 100644 --- a/testsuites/mptests/mp13/task2.c +++ b/testsuites/mptests/mp13/task2.c @@ -9,7 +9,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 @@ -39,14 +39,14 @@ rtems_task Test_task2( directive_failed( status, "rtems_semaphore_ident" ); if ( Multiprocessing_configuration.node == 1 ) { - status = rtems_task_wake_after( TICKS_PER_SECOND ); + status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after" ); puts( "Releasing semaphore ..." ); status = rtems_semaphore_release( Semaphore_id[ 1 ] ); directive_failed( status, "rtems_semaphore_release" ); - status = rtems_task_wake_after( TICKS_PER_SECOND / 2 ); + status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() / 2 ); directive_failed( status, "rtems_task_wake_after" ); puts( "Getting semaphore ..." ); @@ -68,7 +68,7 @@ rtems_task Test_task2( } /* - status = rtems_task_wake_after( TICKS_PER_SECOND / 2 ); + status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() / 2 ); directive_failed( status, "rtems_task_wake_after" ); */ @@ -84,14 +84,14 @@ rtems_task Test_task2( status = rtems_semaphore_release( Semaphore_id[ 1 ] ); directive_failed( status, "rtems_semaphore_release" ); - status = rtems_task_wake_after( TICKS_PER_SECOND ); + status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() ); directive_failed( status, "rtems_task_wake_after" ); puts( "Getting semaphore ..." ); status = rtems_semaphore_obtain( Semaphore_id[ 1 ], RTEMS_DEFAULT_OPTIONS, - 2 * TICKS_PER_SECOND + 2 * rtems_clock_get_ticks_per_second() ); fatal_directive_status( status, |