summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/regionimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-19 14:14:10 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-21 07:29:40 +0200
commitd7a12be9c3f1034947210d4bafa3d39fe1e74571 (patch)
treeb6371a8816cb82265149fb5aa861e49ebf1598b9 /cpukit/rtems/include/rtems/rtems/regionimpl.h
parentscore: Simplify _Objects_Get_next() (diff)
downloadrtems-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.h2
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 */