diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-01 16:11:30 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-02 13:46:50 +0200 |
commit | 0a68d8e45ae1c979f350213ed9c174b86e0c7fdf (patch) | |
tree | 6d87ee6428e446f871ab22fc4fa53a1f46af39d4 /cpukit/posix/src | |
parent | mpci: Make _*_MP_Get_packet() static (diff) | |
download | rtems-0a68d8e45ae1c979f350213ed9c174b86e0c7fdf.tar.bz2 |
score: Optimize _Objects_Get_local()
Make the interrupt lock context the second parameter to avoid register
moves.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/condget.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/prwlockinit.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/posix/src/condget.c b/cpukit/posix/src/condget.c index e3cf59c4a5..b89566af03 100644 --- a/cpukit/posix/src/condget.c +++ b/cpukit/posix/src/condget.c @@ -53,7 +53,7 @@ POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get( return (POSIX_Condition_variables_Control *) _Objects_Get_local( (Objects_Id) *cond, - &_POSIX_Condition_variables_Information, - lock_context + lock_context, + &_POSIX_Condition_variables_Information ); } diff --git a/cpukit/posix/src/prwlockinit.c b/cpukit/posix/src/prwlockinit.c index 8bbb2fda8f..8847c17c30 100644 --- a/cpukit/posix/src/prwlockinit.c +++ b/cpukit/posix/src/prwlockinit.c @@ -63,8 +63,8 @@ POSIX_RWLock_Control *_POSIX_RWLock_Get( return (POSIX_RWLock_Control *) _Objects_Get_local( *rwlock, - &_POSIX_RWLock_Information, - lock_context + lock_context, + &_POSIX_RWLock_Information ); } |