[rtems commit] score: Simplify _CORE_barrier_Flush()

Sebastian Huber sebh at rtems.org
Thu Apr 21 05:33:14 UTC 2016


Module:    rtems
Branch:    master
Commit:    e781ddb2b2fb103a89503ba2c0343d535ade0076
Changeset: http://git.rtems.org/rtems/commit/?id=e781ddb2b2fb103a89503ba2c0343d535ade0076

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sun Apr 17 15:57:03 2016 +0200

score: Simplify _CORE_barrier_Flush()

---

 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 \
   )




More information about the vc mailing list