diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-19 14:14:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-21 07:29:40 +0200 |
commit | d7a12be9c3f1034947210d4bafa3d39fe1e74571 (patch) | |
tree | b6371a8816cb82265149fb5aa861e49ebf1598b9 /cpukit/posix | |
parent | score: Simplify _Objects_Get_next() (diff) | |
download | rtems-d7a12be9c3f1034947210d4bafa3d39fe1e74571.tar.bz2 |
score: Optimize _Objects_Get_no_protection()
Make the id the first parameter since usual callers get the object
identifier as the first parameter themself.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/include/rtems/posix/keyimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/include/rtems/posix/keyimpl.h b/cpukit/posix/include/rtems/posix/keyimpl.h index 1f8747052d..833e652eb1 100644 --- a/cpukit/posix/include/rtems/posix/keyimpl.h +++ b/cpukit/posix/include/rtems/posix/keyimpl.h @@ -77,7 +77,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free( RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get( pthread_key_t key ) { return (POSIX_Keys_Control *) - _Objects_Get_no_protection( &_POSIX_Keys_Information, (Objects_Id) key ); + _Objects_Get_no_protection( (Objects_Id) key, &_POSIX_Keys_Information ); } RTEMS_INLINE_ROUTINE void _POSIX_Keys_Key_value_acquire( |