summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-20 06:43:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-22 09:25:08 +0200
commit2dd5e6fb320a5309e02570fad93d4b5fc09328a7 (patch)
tree0600823693f0c6d2e521537622d2ac89809765a0 /cpukit/posix/include/rtems
parentscore: Avoid Giant lock for CORE mtx/sem (diff)
downloadrtems-2dd5e6fb320a5309e02570fad93d4b5fc09328a7.tar.bz2
posix: Use _Objects_Get_local() for semaphores
This simplifies the code since the object location is no longer used. Remove superfluous header includes.
Diffstat (limited to 'cpukit/posix/include/rtems')
-rw-r--r--cpukit/posix/include/rtems/posix/semaphoreimpl.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/cpukit/posix/include/rtems/posix/semaphoreimpl.h b/cpukit/posix/include/rtems/posix/semaphoreimpl.h
index d726761689..6ec8480929 100644
--- a/cpukit/posix/include/rtems/posix/semaphoreimpl.h
+++ b/cpukit/posix/include/rtems/posix/semaphoreimpl.h
@@ -60,17 +60,14 @@ RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Free (
_Objects_Free( &_POSIX_Semaphore_Information, &the_semaphore->Object );
}
-RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *
-_POSIX_Semaphore_Get_interrupt_disable(
- sem_t *id,
- Objects_Locations *location,
+RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get(
+ const sem_t *id,
ISR_lock_Context *lock_context
)
{
- return (POSIX_Semaphore_Control *) _Objects_Get_isr_disable(
+ return (POSIX_Semaphore_Control *) _Objects_Get_local(
+ (Objects_Id) *id,
&_POSIX_Semaphore_Information,
- (Objects_Id)*id,
- location,
lock_context
);
}