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/rtems/include/rtems/rtems/regionimpl.h | |
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/rtems/include/rtems/rtems/regionimpl.h')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/regionimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/regionimpl.h b/cpukit/rtems/include/rtems/rtems/regionimpl.h index 4db65997a7..e4dcff06fe 100644 --- a/cpukit/rtems/include/rtems/rtems/regionimpl.h +++ b/cpukit/rtems/include/rtems/rtems/regionimpl.h @@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE Region_Control *_Region_Get_and_lock( Objects_Id id ) _RTEMS_Lock_allocator(); the_region = (Region_Control *) - _Objects_Get_no_protection( &_Region_Information, id ); + _Objects_Get_no_protection( id, &_Region_Information ); if ( the_region != NULL ) { /* Keep allocator lock */ |