summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm26/task1.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 15:10:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 16:17:00 +0200
commite266d134ebf6f7b7722fffe23c3b4ad142001452 (patch)
tree7e43e93706be3da460331353b87e58cbb6a9833c /testsuites/tmtests/tm26/task1.c
parentscore: Rename _Objects_Get_local() (diff)
downloadrtems-e266d134ebf6f7b7722fffe23c3b4ad142001452.tar.bz2
Replace *_Get_interrupt_disable() with *_Get()
Uniformly use *_Get() to get an object by identifier with a lock context.
Diffstat (limited to 'testsuites/tmtests/tm26/task1.c')
-rw-r--r--testsuites/tmtests/tm26/task1.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c
index 52348df247..da37eee73e 100644
--- a/testsuites/tmtests/tm26/task1.c
+++ b/testsuites/tmtests/tm26/task1.c
@@ -506,24 +506,21 @@ void complete_test( void )
benchmark_timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
- (void) _Thread_Get_interrupt_disable( task_id, &lock_context );
+ (void) _Thread_Get( task_id, &lock_context );
_ISR_lock_ISR_enable( &lock_context );
}
thread_get_time = benchmark_timer_read();
benchmark_timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
- (void) _Semaphore_Get_interrupt_disable(
- Semaphore_id,
- &lock_context
- );
+ (void) _Semaphore_Get( Semaphore_id, &lock_context );
_ISR_lock_ISR_enable( &lock_context );
}
semaphore_get_time = benchmark_timer_read();
benchmark_timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
- (void) _Thread_Get_interrupt_disable( 0x3, &lock_context );
+ (void) _Thread_Get( 0x3, &lock_context );
_ISR_lock_ISR_enable( &lock_context );
}
thread_get_invalid_time = benchmark_timer_read();
@@ -687,7 +684,7 @@ void complete_test( void )
);
put_time(
- "rtems internal: _Thread_Get_interrupt_disable",
+ "rtems internal: _Thread_Get",
thread_get_time,
OPERATION_COUNT,
0,
@@ -695,7 +692,7 @@ void complete_test( void )
);
put_time(
- "rtems internal: _Semaphore_Get_interrupt_disable",
+ "rtems internal: _Semaphore_Get",
semaphore_get_time,
OPERATION_COUNT,
0,
@@ -703,7 +700,7 @@ void complete_test( void )
);
put_time(
- "rtems internal: _Thread_Get_interrupt_disable: invalid id",
+ "rtems internal: _Thread_Get: invalid id",
thread_get_invalid_time,
OPERATION_COUNT,
0,