summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems/posix/semaphoreimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-01 16:11:30 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-02 13:46:50 +0200
commit0a68d8e45ae1c979f350213ed9c174b86e0c7fdf (patch)
tree6d87ee6428e446f871ab22fc4fa53a1f46af39d4 /cpukit/posix/include/rtems/posix/semaphoreimpl.h
parentmpci: Make _*_MP_Get_packet() static (diff)
downloadrtems-0a68d8e45ae1c979f350213ed9c174b86e0c7fdf.tar.bz2
score: Optimize _Objects_Get_local()
Make the interrupt lock context the second parameter to avoid register moves.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/include/rtems/posix/semaphoreimpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/include/rtems/posix/semaphoreimpl.h b/cpukit/posix/include/rtems/posix/semaphoreimpl.h
index 6ec8480929..a4090441c6 100644
--- a/cpukit/posix/include/rtems/posix/semaphoreimpl.h
+++ b/cpukit/posix/include/rtems/posix/semaphoreimpl.h
@@ -67,8 +67,8 @@ RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get(
{
return (POSIX_Semaphore_Control *) _Objects_Get_local(
(Objects_Id) *id,
- &_POSIX_Semaphore_Information,
- lock_context
+ lock_context,
+ &_POSIX_Semaphore_Information
);
}