summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp06
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/sp06')
-rw-r--r--testsuites/sptests/sp06/task1.c8
-rw-r--r--testsuites/sptests/sp06/task2.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/testsuites/sptests/sp06/task1.c b/testsuites/sptests/sp06/task1.c
index bf0c0e3873..e5ae84510c 100644
--- a/testsuites/sptests/sp06/task1.c
+++ b/testsuites/sptests/sp06/task1.c
@@ -8,7 +8,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
@@ -41,18 +41,18 @@ rtems_task Task_1(
status = rtems_task_restart( Task_id[ 3 ], Restart_argument );
directive_failed( status, "rtems_task_restart of TA3" );
- status = rtems_task_wake_after( 2 * TICKS_PER_SECOND );
+ status = rtems_task_wake_after( 2 * rtems_clock_get_ticks_per_second() );
directive_failed( status, "rtems_task_wake_after" );
}
- 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( "TA1 - rtems_task_restart - restarting TA2" );
status = rtems_task_restart( Task_id[ 2 ], Restart_argument );
directive_failed( status, "rtems_task_restart TA2" );
- status = rtems_task_wake_after( 1*TICKS_PER_SECOND );
+ status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
directive_failed( status, "rtems_task_wake_after" );
puts( "TA1 - rtems_task_restart - restarting self" );
diff --git a/testsuites/sptests/sp06/task2.c b/testsuites/sptests/sp06/task2.c
index b7d1d8df63..2214623dd3 100644
--- a/testsuites/sptests/sp06/task2.c
+++ b/testsuites/sptests/sp06/task2.c
@@ -8,7 +8,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
@@ -27,13 +27,13 @@ rtems_task_argument argument;
puts( "TA2 - is beginning to run" );
if ( argument == Argument ) {
- status = rtems_task_wake_after( 2 * TICKS_PER_SECOND );
+ status = rtems_task_wake_after( 2 * rtems_clock_get_ticks_per_second() );
directive_failed( status, "rtems_task_wake_after" );
}
while( FOREVER ) {
puts( "TA2 - rtems_task_wake_after - sleep 1/2 second" );
- 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" );
}
}