From cd49fdcdcb5585da33707c205d9fd747a408e622 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 10 Aug 2009 14:50:24 +0000 Subject: 2009-08-10 Joel Sherrill * cpuuse/task1.c, cpuuse/tswitch.c, malloctest/task1.c, stackchk/task1.c: Convert calls to legacy routine rtems_clock_get( RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..). --- testsuites/libtests/ChangeLog | 6 ++++++ testsuites/libtests/cpuuse/task1.c | 8 ++++---- testsuites/libtests/cpuuse/tswitch.c | 4 ++-- testsuites/libtests/malloctest/task1.c | 6 +++--- testsuites/libtests/stackchk/task1.c | 6 +++--- 5 files changed, 18 insertions(+), 12 deletions(-) (limited to 'testsuites/libtests') diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog index 2ba41e3b0a..9bd4f58bad 100644 --- a/testsuites/libtests/ChangeLog +++ b/testsuites/libtests/ChangeLog @@ -1,3 +1,9 @@ +2009-08-10 Joel Sherrill + + * cpuuse/task1.c, cpuuse/tswitch.c, malloctest/task1.c, + stackchk/task1.c: Convert calls to legacy routine rtems_clock_get( + RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..). + 2009-08-09 Joel Sherrill * malloctest/init.c: Adjust allocation in test so it passes now that diff --git a/testsuites/libtests/cpuuse/task1.c b/testsuites/libtests/cpuuse/task1.c index 8f41210c28..bb2f32bc33 100644 --- a/testsuites/libtests/cpuuse/task1.c +++ b/testsuites/libtests/cpuuse/task1.c @@ -72,14 +72,14 @@ rtems_task Task_1( ); directive_failed( status, "rtems_task_mode" ); - status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time ); - directive_failed( status, "rtems_clock_get" ); + status = rtems_clock_get_tod( &time ); + directive_failed( status, "rtems_clock_get_tod" ); old_seconds = time.second; for ( seconds = 0 ; seconds < 6 ; ) { - status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time ); - directive_failed( status, "rtems_clock_get" ); + status = rtems_clock_get_tod( &time ); + directive_failed( status, "rtems_clock_get_tod" ); if ( time.second != old_seconds ) { old_seconds = time.second; diff --git a/testsuites/libtests/cpuuse/tswitch.c b/testsuites/libtests/cpuuse/tswitch.c index 3e0b09741e..f2ddbd408c 100644 --- a/testsuites/libtests/cpuuse/tswitch.c +++ b/testsuites/libtests/cpuuse/tswitch.c @@ -47,9 +47,9 @@ rtems_extension Task_switch( case 3: Run_count[ index ] += 1; - status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time ); + status = rtems_clock_get_tod( &time ); fatal_directive_status_with_level( status, RTEMS_SUCCESSFUL, - "rtems_clock_get", 1 ); + "rtems_clock_get_tod", 1 ); if (taskSwitchLogIndex < (sizeof taskSwitchLog / sizeof taskSwitchLog[0])) { diff --git a/testsuites/libtests/malloctest/task1.c b/testsuites/libtests/malloctest/task1.c index 8568710ba5..8da497a671 100644 --- a/testsuites/libtests/malloctest/task1.c +++ b/testsuites/libtests/malloctest/task1.c @@ -42,11 +42,11 @@ rtems_task Task_1_through_5( rtems_test_exit(0); } - status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time ); - directive_failed( status, "rtems_clock_get" ); + status = rtems_clock_get_tod( &time ); + directive_failed( status, "rtems_clock_get_tod" ); put_name( Task_name[ task_number( tid ) ], FALSE ); - print_time( " - rtems_clock_get - ", &time, "\n" ); + print_time( " - rtems_clock_get_tod - ", &time, "\n" ); mem_amt = ((int)((float)rand()*1000.0/(float)RAND_MAX)); while (!(mem_ptr = malloc ( mem_amt))) { diff --git a/testsuites/libtests/stackchk/task1.c b/testsuites/libtests/stackchk/task1.c index 6692a1d4b7..632b539ea4 100644 --- a/testsuites/libtests/stackchk/task1.c +++ b/testsuites/libtests/stackchk/task1.c @@ -27,15 +27,15 @@ rtems_task Task_1_through_3( directive_failed( status, "rtems_task_ident" ); while( FOREVER ) { - status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time ); - directive_failed( status, "rtems_clock_get" ); + status = rtems_clock_get_tod( &time ); + directive_failed( status, "rtems_clock_get_tod" ); if ( time.second >= 15 && tid == Task_id[ 1 ] ) { blow_stack(); } put_name( Task_name[ task_number( tid ) ], FALSE ); - print_time( " - rtems_clock_get - ", &time, "\n" ); + print_time( " - rtems_clock_get_tod - ", &time, "\n" ); status = rtems_task_wake_after( task_number( tid ) * 5 * TICKS_PER_SECOND ); directive_failed( status, "rtems_task_wake_after" ); -- cgit v1.2.3