2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>

* 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(..).
This commit is contained in:
Joel Sherrill
2009-08-10 14:50:24 +00:00
parent 1654d02d6f
commit cd49fdcdcb
5 changed files with 18 additions and 12 deletions

View File

@@ -1,3 +1,9 @@
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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 <joel.sherrill@oarcorp.com>
* malloctest/init.c: Adjust allocation in test so it passes now that

View File

@@ -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;

View File

@@ -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])) {

View File

@@ -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))) {

View File

@@ -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" );