[PATCH 04/20] score: Simplify _CORE_barrier_Flush()

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Apr 19 13:12:32 UTC 2016


---
 cpukit/rtems/src/barrierdelete.c                   | 8 +-------
 cpukit/score/include/rtems/score/corebarrierimpl.h | 3 +--
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/cpukit/rtems/src/barrierdelete.c b/cpukit/rtems/src/barrierdelete.c
index 9ddfe01..7dab0c0 100644
--- a/cpukit/rtems/src/barrierdelete.c
+++ b/cpukit/rtems/src/barrierdelete.c
@@ -33,13 +33,7 @@ rtems_status_code rtems_barrier_delete(
   switch ( location ) {
 
     case OBJECTS_LOCAL:
-      _CORE_barrier_Flush(
-        &the_barrier->Barrier,
-        CORE_BARRIER_WAS_DELETED,
-        NULL,
-        id
-      );
-
+      _CORE_barrier_Flush( &the_barrier->Barrier, NULL, 0 );
       _Objects_Close( &_Barrier_Information, &the_barrier->Object );
       _Objects_Put( &the_barrier->Object );
       _Barrier_Free( the_barrier );
diff --git a/cpukit/score/include/rtems/score/corebarrierimpl.h b/cpukit/score/include/rtems/score/corebarrierimpl.h
index 8754cec..1d77405 100644
--- a/cpukit/score/include/rtems/score/corebarrierimpl.h
+++ b/cpukit/score/include/rtems/score/corebarrierimpl.h
@@ -196,14 +196,13 @@ uint32_t _CORE_barrier_Do_release(
 /* Must be a macro due to the multiprocessing dependent parameters */
 #define _CORE_barrier_Flush( \
   the_barrier, \
-  status, \
   mp_callout, \
   mp_id \
 ) \
   _Thread_queue_Flush( \
     &( the_barrier )->Wait_queue, \
     CORE_BARRIER_TQ_OPERATIONS, \
-    status, \
+    CORE_BARRIER_WAS_DELETED, \
     mp_callout, \
     mp_id \
   )
-- 
1.8.4.5




More information about the devel mailing list