summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems/posix/spinlockimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-19 14:14:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-21 07:29:40 +0200
commit88575577fa70f6a6c6800acb35e77e0ca12891b8 (patch)
tree75fe037f5bbf74bb7e50972f126a8c06cb58ce5c /cpukit/posix/include/rtems/posix/spinlockimpl.h
parentscore: Optimize _Objects_Get_no_protection() (diff)
downloadrtems-88575577fa70f6a6c6800acb35e77e0ca12891b8.tar.bz2
score: Optimize _Objects_Get_local()
Make the id the first parameter since usual callers get the object identifier as the first parameter themself.
Diffstat (limited to 'cpukit/posix/include/rtems/posix/spinlockimpl.h')
-rw-r--r--cpukit/posix/include/rtems/posix/spinlockimpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/include/rtems/posix/spinlockimpl.h b/cpukit/posix/include/rtems/posix/spinlockimpl.h
index 0904050288..c5aa343fd1 100644
--- a/cpukit/posix/include/rtems/posix/spinlockimpl.h
+++ b/cpukit/posix/include/rtems/posix/spinlockimpl.h
@@ -85,8 +85,8 @@ RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get(
}
return (POSIX_Spinlock_Control *) _Objects_Get_local(
- &_POSIX_Spinlock_Information,
*spinlock,
+ &_POSIX_Spinlock_Information,
lock_context
);
}