diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-03 09:59:50 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-04 07:24:31 +0200 |
commit | a0dee7c7bfff0305e9f5efc83b97b35d25d4ad19 (patch) | |
tree | c1c2be7e0a3f487dd42a32c279c40dd7675c5b5f /cpukit/score/src/threadget.c | |
parent | rtems: Return status in _Event_Surrender() (diff) | |
download | rtems-a0dee7c7bfff0305e9f5efc83b97b35d25d4ad19.tar.bz2 |
score: Simplify _Thread_Get_interrupt_disable()
Remove the object location parameter.
Diffstat (limited to 'cpukit/score/src/threadget.c')
-rw-r--r-- | cpukit/score/src/threadget.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/score/src/threadget.c b/cpukit/score/src/threadget.c index 7e3963d287..c6504994dd 100644 --- a/cpukit/score/src/threadget.c +++ b/cpukit/score/src/threadget.c @@ -45,24 +45,21 @@ Thread_Control *_Thread_Get( Thread_Control *_Thread_Get_interrupt_disable( Objects_Id id, - Objects_Locations *location, ISR_lock_Context *lock_context ) { Objects_Information *information; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { - *location = OBJECTS_LOCAL; _ISR_lock_ISR_disable( lock_context ); return _Thread_Executing; } information = _Thread_Get_objects_information( id ); if ( information == NULL ) { - *location = OBJECTS_ERROR; return NULL; } return (Thread_Control *) - _Objects_Get_isr_disable( information, id, location, lock_context ); + _Objects_Get_local( id, lock_context, information ); } |