From d7a12be9c3f1034947210d4bafa3d39fe1e74571 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 19 Apr 2016 14:14:10 +0200 Subject: score: Optimize _Objects_Get_no_protection() Make the id the first parameter since usual callers get the object identifier as the first parameter themself. --- cpukit/rtems/include/rtems/rtems/regionimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/rtems/include/rtems/rtems/regionimpl.h') 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 */ -- cgit v1.2.3