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/rtems | |
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/rtems')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/barrierimpl.h | 2 | ||||
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/dpmemimpl.h | 2 | ||||
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/ratemonimpl.h | 2 | ||||
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/timerimpl.h | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/barrierimpl.h b/cpukit/rtems/include/rtems/rtems/barrierimpl.h index 1598ce2088..99ce276943 100644 --- a/cpukit/rtems/include/rtems/rtems/barrierimpl.h +++ b/cpukit/rtems/include/rtems/rtems/barrierimpl.h @@ -75,7 +75,7 @@ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get( ) { return (Barrier_Control *) - _Objects_Get_local( id, &_Barrier_Information, lock_context ); + _Objects_Get_local( id, lock_context, &_Barrier_Information ); } /** diff --git a/cpukit/rtems/include/rtems/rtems/dpmemimpl.h b/cpukit/rtems/include/rtems/rtems/dpmemimpl.h index 1e967224ac..df513787c7 100644 --- a/cpukit/rtems/include/rtems/rtems/dpmemimpl.h +++ b/cpukit/rtems/include/rtems/rtems/dpmemimpl.h @@ -72,7 +72,7 @@ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get( ) { return (Dual_ported_memory_Control *) - _Objects_Get_local( id, &_Dual_ported_memory_Information, lock_context ); + _Objects_Get_local( id, lock_context, &_Dual_ported_memory_Information ); } /**@}*/ diff --git a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h index 200ff801ff..ac0c2c5f2c 100644 --- a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h +++ b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h @@ -90,7 +90,7 @@ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get( ) { return (Rate_monotonic_Control *) - _Objects_Get_local( id, &_Rate_monotonic_Information, lock_context ); + _Objects_Get_local( id, lock_context, &_Rate_monotonic_Information ); } void _Rate_monotonic_Timeout( Watchdog_Control *watchdog ); diff --git a/cpukit/rtems/include/rtems/rtems/timerimpl.h b/cpukit/rtems/include/rtems/rtems/timerimpl.h index 9a52762d7b..5605be768d 100644 --- a/cpukit/rtems/include/rtems/rtems/timerimpl.h +++ b/cpukit/rtems/include/rtems/rtems/timerimpl.h @@ -89,8 +89,8 @@ RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get( { return (Timer_Control *) _Objects_Get_local( id, - &_Timer_Information, - lock_context + lock_context, + &_Timer_Information ); } |