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/sapi/include/rtems/extensionimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/sapi/include/rtems/extensionimpl.h') diff --git a/cpukit/sapi/include/rtems/extensionimpl.h b/cpukit/sapi/include/rtems/extensionimpl.h index 64ac600520..fb4eeaff7c 100644 --- a/cpukit/sapi/include/rtems/extensionimpl.h +++ b/cpukit/sapi/include/rtems/extensionimpl.h @@ -42,7 +42,7 @@ RTEMS_INLINE_ROUTINE void _Extension_Free ( RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get( Objects_Id id ) { return (Extension_Control *) - _Objects_Get_no_protection( &_Extension_Information, id ); + _Objects_Get_no_protection( id, &_Extension_Information ); } #ifdef __cplusplus -- cgit v1.2.3