summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/corebarrierimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-08-22 13:17:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-08 09:55:26 +0200
commit114e40880bb56186d06fc81da29a889d9f2171a5 (patch)
tree65e8f132b4ebc8f9e5fa7668c9a6de9e26a33088 /cpukit/score/include/rtems/score/corebarrierimpl.h
parentscore: Fix warning (diff)
downloadrtems-114e40880bb56186d06fc81da29a889d9f2171a5.tar.bz2
score: Simplify thread queue acquire/release
Diffstat (limited to 'cpukit/score/include/rtems/score/corebarrierimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/corebarrierimpl.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/cpukit/score/include/rtems/score/corebarrierimpl.h b/cpukit/score/include/rtems/score/corebarrierimpl.h
index a7256b9d6d..d5d63659d0 100644
--- a/cpukit/score/include/rtems/score/corebarrierimpl.h
+++ b/cpukit/score/include/rtems/score/corebarrierimpl.h
@@ -59,10 +59,7 @@ RTEMS_INLINE_ROUTINE void _CORE_barrier_Acquire_critical(
Thread_queue_Context *queue_context
)
{
- _Thread_queue_Acquire_critical(
- &the_barrier->Wait_queue,
- &queue_context->Lock_context
- );
+ _Thread_queue_Acquire_critical( &the_barrier->Wait_queue, queue_context );
}
RTEMS_INLINE_ROUTINE void _CORE_barrier_Release(
@@ -70,10 +67,7 @@ RTEMS_INLINE_ROUTINE void _CORE_barrier_Release(
Thread_queue_Context *queue_context
)
{
- _Thread_queue_Release(
- &the_barrier->Wait_queue,
- &queue_context->Lock_context
- );
+ _Thread_queue_Release( &the_barrier->Wait_queue, queue_context );
}
/**