[rtems commit] score: Delete CORE_mutex_Control::blocked_count

Sebastian Huber sebh at rtems.org
Mon Mar 31 08:09:16 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Mar 27 08:04:10 2014 +0100

score: Delete CORE_mutex_Control::blocked_count

---

 cpukit/score/include/rtems/score/coremutex.h |    2 --
 cpukit/score/src/coremutex.c                 |    1 -
 cpukit/score/src/coremutexseize.c            |    1 -
 3 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h
index 04d2087..be11cb6 100644
--- a/cpukit/score/include/rtems/score/coremutex.h
+++ b/cpukit/score/include/rtems/score/coremutex.h
@@ -162,8 +162,6 @@ typedef struct {
    *  nested.  This must be zero (0) before the mutex is actually unlocked.
    */
   uint32_t                nest_count;
-  /** This is the number of waiting threads. */
-  uint32_t                blocked_count;
   /** This element points to the thread which is currently holding this mutex.
    *  The holder is the last thread to successfully lock the mutex and which
    *  has not unlocked it.  If the thread is not locked, there is no holder.
diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c
index 3b03fef..4cdc764 100644
--- a/cpukit/score/src/coremutex.c
+++ b/cpukit/score/src/coremutex.c
@@ -38,7 +38,6 @@ CORE_mutex_Status _CORE_mutex_Initialize(
 
   the_mutex->Attributes    = *the_mutex_attributes;
   the_mutex->lock          = initial_lock;
-  the_mutex->blocked_count = 0;
 
   if ( initial_lock == CORE_MUTEX_LOCKED ) {
     the_mutex->nest_count = 1;
diff --git a/cpukit/score/src/coremutexseize.c b/cpukit/score/src/coremutexseize.c
index d6e817c..fe6ee5e 100644
--- a/cpukit/score/src/coremutexseize.c
+++ b/cpukit/score/src/coremutexseize.c
@@ -60,7 +60,6 @@ void _CORE_mutex_Seize_interrupt_blocking(
     );
   }
 
-  the_mutex->blocked_count++;
   _Thread_queue_Enqueue( &the_mutex->Wait_queue, executing, timeout );
 
   _Thread_Enable_dispatch();




More information about the vc mailing list