summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm27/task1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 16:47:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 16:47:18 +0000
commit4074e70b0390d25b184b1187b8a8c59cf7ead79b (patch)
tree59fb0f95377c8e1b71234c5059a76c138deae15c /testsuites/tmtests/tm27/task1.c
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-4074e70b0390d25b184b1187b8a8c59cf7ead79b.tar.bz2
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.
Diffstat (limited to 'testsuites/tmtests/tm27/task1.c')
-rw-r--r--testsuites/tmtests/tm27/task1.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/testsuites/tmtests/tm27/task1.c b/testsuites/tmtests/tm27/task1.c
index ff55da6273..108fc5364a 100644
--- a/testsuites/tmtests/tm27/task1.c
+++ b/testsuites/tmtests/tm27/task1.c
@@ -78,10 +78,10 @@ rtems_task Init(
status = rtems_task_start( Task_id[ 2 ], Task_2, 0 );
directive_failed( status, "rtems_task_start of Task_2" );
- Timer_initialize();
- Read_timer();
- Timer_initialize();
- timer_overhead = Read_timer();
+ benchmark_timerinitialize();
+ benchmark_timerread();
+ benchmark_timerinitialize();
+ timer_overhead = benchmark_timerread();
status = rtems_task_delete( RTEMS_SELF );
directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
@@ -103,14 +103,14 @@ rtems_task Task_1(
Interrupt_occurred = 0;
- Timer_initialize();
+ benchmark_timerinitialize();
Cause_tm27_intr();
/* goes to Isr_handler */
#if (MUST_WAIT_FOR_INTERRUPT == 1)
while ( Interrupt_occurred == 0 );
#endif
- Interrupt_return_time = Read_timer();
+ Interrupt_return_time = benchmark_timerread();
put_time(
"interrupt entry overhead: returns to interrupted task",
@@ -137,14 +137,14 @@ rtems_task Task_1(
Interrupt_nest = 1;
Interrupt_occurred = 0;
- Timer_initialize();
+ benchmark_timerinitialize();
Cause_tm27_intr();
/* goes to Isr_handler */
#if (MUST_WAIT_FOR_INTERRUPT == 1)
while ( Interrupt_occurred == 0 );
#endif
- Interrupt_return_time = Read_timer();
+ Interrupt_return_time = benchmark_timerread();
_Thread_Dispatch_disable_level = 0;
@@ -175,7 +175,7 @@ rtems_task Task_1(
_Context_Switch_necessary = 1;
Interrupt_occurred = 0;
- Timer_initialize();
+ benchmark_timerinitialize();
Cause_tm27_intr();
/*
@@ -201,7 +201,7 @@ rtems_task Task_2(
#if (MUST_WAIT_FOR_INTERRUPT == 1)
while ( Interrupt_occurred == 0 );
#endif
- end_time = Read_timer();
+ end_time = benchmark_timerread();
put_time(
"interrupt entry overhead: returns to preempting task",
@@ -246,7 +246,7 @@ rtems_isr Isr_handler(
rtems_vector_number vector
)
{
- end_time = Read_timer();
+ end_time = benchmark_timerread();
Interrupt_occurred = 1;
Isr_handler_inner();
@@ -266,18 +266,18 @@ void Isr_handler_inner( void )
Interrupt_nest = 2;
Interrupt_occurred = 0;
Lower_tm27_intr();
- Timer_initialize();
+ benchmark_timerinitialize();
Cause_tm27_intr();
/* goes to a nested copy of Isr_handler */
#if (MUST_WAIT_FOR_INTERRUPT == 1)
while ( Interrupt_occurred == 0 );
#endif
- Interrupt_return_nested_time = Read_timer();
+ Interrupt_return_nested_time = benchmark_timerread();
break;
case 2:
Interrupt_enter_nested_time = end_time;
break;
}
- Timer_initialize();
+ benchmark_timerinitialize();
}