[rtems commit] score: _CORE_semaphore_Seize()

Sebastian Huber sebh at rtems.org
Fri May 20 14:19:34 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri May 20 15:52:27 2016 +0200

score: _CORE_semaphore_Seize()

Delete unused parameter.

---

 cpukit/posix/src/semaphorewaitsupp.c           | 1 -
 cpukit/rtems/src/semobtain.c                   | 1 -
 cpukit/score/include/rtems/score/coresemimpl.h | 2 --
 cpukit/score/src/mpci.c                        | 1 -
 4 files changed, 5 deletions(-)

diff --git a/cpukit/posix/src/semaphorewaitsupp.c b/cpukit/posix/src/semaphorewaitsupp.c
index 84ebe3d..02a2ae1 100644
--- a/cpukit/posix/src/semaphorewaitsupp.c
+++ b/cpukit/posix/src/semaphorewaitsupp.c
@@ -49,7 +49,6 @@ int _POSIX_Semaphore_Wait_support(
   _CORE_semaphore_Seize(
     &the_semaphore->Semaphore,
     executing,
-    the_semaphore->Object.id,
     blocking,
     timeout,
     &lock_context
diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c
index 8deb857..cd72c86 100644
--- a/cpukit/rtems/src/semobtain.c
+++ b/cpukit/rtems/src/semobtain.c
@@ -89,7 +89,6 @@ rtems_status_code rtems_semaphore_obtain(
   _CORE_semaphore_Seize(
     &the_semaphore->Core_control.semaphore,
     executing,
-    id,
     wait,
     timeout,
     &lock_context
diff --git a/cpukit/score/include/rtems/score/coresemimpl.h b/cpukit/score/include/rtems/score/coresemimpl.h
index bc17406..a06fcb5 100644
--- a/cpukit/score/include/rtems/score/coresemimpl.h
+++ b/cpukit/score/include/rtems/score/coresemimpl.h
@@ -256,7 +256,6 @@ RTEMS_INLINE_ROUTINE uint32_t  _CORE_semaphore_Get_count(
  *
  * @param[in] the_semaphore is the semaphore to obtain
  * @param[in,out] executing The currently executing thread.
- * @param[in] id is the Id of the owning API level Semaphore object
  * @param[in] wait is true if the thread is willing to wait
  * @param[in] timeout is the maximum number of ticks to block
  * @param[in] lock_context is a temporary variable used to contain the ISR
@@ -267,7 +266,6 @@ RTEMS_INLINE_ROUTINE uint32_t  _CORE_semaphore_Get_count(
 RTEMS_INLINE_ROUTINE void _CORE_semaphore_Seize(
   CORE_semaphore_Control  *the_semaphore,
   Thread_Control          *executing,
-  Objects_Id               id,
   bool                     wait,
   Watchdog_Interval        timeout,
   ISR_lock_Context        *lock_context
diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c
index 26adc96..d5ba1e5 100644
--- a/cpukit/score/src/mpci.c
+++ b/cpukit/score/src/mpci.c
@@ -336,7 +336,6 @@ void _MPCI_Receive_server(
     _CORE_semaphore_Seize(
       &_MPCI_Semaphore,
       executing,
-      0,
       true,
       WATCHDOG_NO_TIMEOUT,
       &lock_context



More information about the vc mailing list