diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-19 14:14:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-21 07:29:40 +0200 |
commit | 88575577fa70f6a6c6800acb35e77e0ca12891b8 (patch) | |
tree | 75fe037f5bbf74bb7e50972f126a8c06cb58ce5c /cpukit/posix/include | |
parent | score: Optimize _Objects_Get_no_protection() (diff) | |
download | rtems-88575577fa70f6a6c6800acb35e77e0ca12891b8.tar.bz2 |
score: Optimize _Objects_Get_local()
Make the id the first parameter since usual callers get the object
identifier as the first parameter themself.
Diffstat (limited to 'cpukit/posix/include')
-rw-r--r-- | cpukit/posix/include/rtems/posix/spinlockimpl.h | 2 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/timerimpl.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/include/rtems/posix/spinlockimpl.h b/cpukit/posix/include/rtems/posix/spinlockimpl.h index 0904050288..c5aa343fd1 100644 --- a/cpukit/posix/include/rtems/posix/spinlockimpl.h +++ b/cpukit/posix/include/rtems/posix/spinlockimpl.h @@ -85,8 +85,8 @@ RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get( } return (POSIX_Spinlock_Control *) _Objects_Get_local( - &_POSIX_Spinlock_Information, *spinlock, + &_POSIX_Spinlock_Information, lock_context ); } diff --git a/cpukit/posix/include/rtems/posix/timerimpl.h b/cpukit/posix/include/rtems/posix/timerimpl.h index bf25629529..95ccc4e32b 100644 --- a/cpukit/posix/include/rtems/posix/timerimpl.h +++ b/cpukit/posix/include/rtems/posix/timerimpl.h @@ -98,8 +98,8 @@ RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( ) { return (POSIX_Timer_Control *) _Objects_Get_local( - &_POSIX_Timer_Information, (Objects_Id) id, + &_POSIX_Timer_Information, lock_context ); } |