summaryrefslogtreecommitdiffstats
path: root/testsuites/tmitrontests/tmitronsem01
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 17:22:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 17:22:21 +0000
commite0c13fa383ed34172d1f73b215e44da3f57e1908 (patch)
tree59aa64cd0312db159c50548e86b4ed2d0a704532 /testsuites/tmitrontests/tmitronsem01
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-e0c13fa383ed34172d1f73b215e44da3f57e1908.tar.bz2
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* tmitronsem01/Makefile.am, tmitronsem01/init.c: Eliminate empty function from every benchmark timer driver. Fix spelling.
Diffstat (limited to '')
-rw-r--r--testsuites/tmitrontests/tmitronsem01/Makefile.am3
-rw-r--r--testsuites/tmitrontests/tmitronsem01/init.c24
2 files changed, 14 insertions, 13 deletions
diff --git a/testsuites/tmitrontests/tmitronsem01/Makefile.am b/testsuites/tmitrontests/tmitronsem01/Makefile.am
index c2113aed20..b6403cac95 100644
--- a/testsuites/tmitrontests/tmitronsem01/Makefile.am
+++ b/testsuites/tmitrontests/tmitronsem01/Makefile.am
@@ -5,7 +5,8 @@
MANAGERS = all
rtems_tests_PROGRAMS = tmitronsem01.exe
-tmitronsem01_exe_SOURCES = init.c system.h
+tmitronsem01_exe_SOURCES = init.c system.h \
+ ../../support/src/tmtests_empty_function.c
dist_rtems_tests_DATA = tmitronsem01.doc
diff --git a/testsuites/tmitrontests/tmitronsem01/init.c b/testsuites/tmitrontests/tmitronsem01/init.c
index 3f57f0f8dd..81bdf5a0fc 100644
--- a/testsuites/tmitrontests/tmitronsem01/init.c
+++ b/testsuites/tmitrontests/tmitronsem01/init.c
@@ -41,9 +41,9 @@ void ITRON_Init( void )
* time one invocation of cre_sem
*/
- Timer_initialize();
+ benchmark_timer_initialize();
(void) cre_sem( 1, &pk_csem );
- end_time = Read_timer();
+ end_time = benchmark_timer_read();
put_time(
"cre_sem",
end_time,
@@ -56,9 +56,9 @@ void ITRON_Init( void )
* time one invocation of del_sem
*/
- Timer_initialize();
+ benchmark_timer_initialize();
(void) del_sem( 1 );
- end_time = Read_timer();
+ end_time = benchmark_timer_read();
put_time(
"del_sem",
end_time,
@@ -76,10 +76,10 @@ void ITRON_Init( void )
* time preq_sem (available)
*/
- Timer_initialize();
+ benchmark_timer_initialize();
for ( index = 1 ; index<=OPERATION_COUNT ; index++ )
(void) preq_sem( 1 );
- end_time = Read_timer();
+ end_time = benchmark_timer_read();
put_time(
"preq_sem (available)",
end_time,
@@ -92,10 +92,10 @@ void ITRON_Init( void )
* time preq_sem (not available)
*/
- Timer_initialize();
+ benchmark_timer_initialize();
for ( index = 1 ; index<=OPERATION_COUNT ; index++ )
(void) preq_sem( 1 );
- end_time = Read_timer();
+ end_time = benchmark_timer_read();
put_time(
"preq_sem (not available)",
end_time,
@@ -108,10 +108,10 @@ void ITRON_Init( void )
* time sig_sem (no waiting tasks)
*/
- Timer_initialize();
+ benchmark_timer_initialize();
for ( index = 1 ; index<=OPERATION_COUNT ; index++ )
(void) sig_sem( 1 );
- end_time = Read_timer();
+ end_time = benchmark_timer_read();
put_time(
"sig_sem (no waiting tasks)",
end_time,
@@ -124,10 +124,10 @@ void ITRON_Init( void )
* time ref_sem
*/
- Timer_initialize();
+ benchmark_timer_initialize();
for ( index = 1 ; index<=OPERATION_COUNT ; index++ )
(void) ref_sem( 1, &pk_rsem );
- end_time = Read_timer();
+ end_time = benchmark_timer_read();
put_time(
"ref_sem",
end_time,