2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>

* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c,
	tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c,
	tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c,
	tm16/task1.c, tm17/task1.c, tm18/task1.c, tm19/task1.c, tm20/task1.c,
	tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c,
	tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmck/task1.c,
	tmoverhd/testtask.c: Rename timer driver methods to follow RTEMS
	programming conventions.
This commit is contained in:
Joel Sherrill
2008-08-31 16:47:18 +00:00
parent 424ee2ba6a
commit 4074e70b03
32 changed files with 528 additions and 517 deletions

View File

@@ -72,19 +72,19 @@ rtems_task Task_1(
uint32_t index;
if ( Task_restarted == OPERATION_COUNT )
Timer_initialize();
benchmark_timerinitialize();
Task_restarted--;
if ( Task_restarted != 0 )
(void) rtems_task_restart( RTEMS_SELF, 0 );
end_time = Read_timer();
end_time = benchmark_timerread();
Timer_initialize();
benchmark_timerinitialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
(void) Empty_function();
overhead = Read_timer();
(void) benchmark_timerempty_function();
overhead = benchmark_timerread();
put_time(
"rtems_task_restart: calling task",
@@ -109,10 +109,10 @@ rtems_task Task_1(
directive_failed( status, "rtems_task_start loop" );
}
Timer_initialize();
benchmark_timerinitialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
(void) rtems_task_suspend( Task_id[ index ] );
end_time = Read_timer();
end_time = benchmark_timerread();
put_time(
"rtems_task_suspend: returns to caller",
@@ -122,10 +122,10 @@ rtems_task Task_1(
CALLING_OVERHEAD_TASK_SUSPEND
);
Timer_initialize();
benchmark_timerinitialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
(void) rtems_task_resume( Task_id[ index ] );
end_time = Read_timer();
end_time = benchmark_timerread();
put_time(
"rtems_task_resume: task readied -- returns to caller",
@@ -135,10 +135,10 @@ rtems_task Task_1(
CALLING_OVERHEAD_TASK_RESUME
);
Timer_initialize();
benchmark_timerinitialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
(void) rtems_task_delete( Task_id[ index ] );
end_time = Read_timer();
end_time = benchmark_timerread();
put_time(
"rtems_task_delete: ready task",