[PATCH 33/45] score: Delete _Objects_Put_for_get_isr_disable()

Sebastian Huber sebastian.huber at embedded-brains.de
Fri May 15 11:41:33 UTC 2015


This function is superfluous due to the introduction of fine grained
locking.
---
 cpukit/rtems/src/eventsend.c                  |  1 -
 cpukit/rtems/src/systemeventsend.c            |  1 -
 cpukit/score/include/rtems/score/objectimpl.h | 10 ----------
 3 files changed, 12 deletions(-)

diff --git a/cpukit/rtems/src/eventsend.c b/cpukit/rtems/src/eventsend.c
index c9e81fb..23eed74 100644
--- a/cpukit/rtems/src/eventsend.c
+++ b/cpukit/rtems/src/eventsend.c
@@ -44,7 +44,6 @@ rtems_status_code rtems_event_send(
         THREAD_WAIT_CLASS_EVENT,
         &lock_context
       );
-      _Objects_Put_for_get_isr_disable( &thread->Object );
       sc = RTEMS_SUCCESSFUL;
       break;
 #ifdef RTEMS_MULTIPROCESSING
diff --git a/cpukit/rtems/src/systemeventsend.c b/cpukit/rtems/src/systemeventsend.c
index 1892c13..3c821c9 100644
--- a/cpukit/rtems/src/systemeventsend.c
+++ b/cpukit/rtems/src/systemeventsend.c
@@ -50,7 +50,6 @@ rtems_status_code rtems_event_system_send(
         THREAD_WAIT_CLASS_SYSTEM_EVENT,
         &lock_context
       );
-      _Objects_Put_for_get_isr_disable( &thread->Object );
       sc = RTEMS_SUCCESSFUL;
       break;
 #ifdef RTEMS_MULTIPROCESSING
diff --git a/cpukit/score/include/rtems/score/objectimpl.h b/cpukit/score/include/rtems/score/objectimpl.h
index 4080a24..a5a3b7e 100644
--- a/cpukit/score/include/rtems/score/objectimpl.h
+++ b/cpukit/score/include/rtems/score/objectimpl.h
@@ -991,16 +991,6 @@ RTEMS_INLINE_ROUTINE void _Objects_Put_without_thread_dispatch(
 }
 
 /**
- * @brief Puts back an object obtained with _Objects_Get_isr_disable().
- */
-RTEMS_INLINE_ROUTINE void _Objects_Put_for_get_isr_disable(
-  Objects_Control *the_object
-)
-{
-  (void) the_object;
-}
-
-/**
  * @brief Locks the object allocator mutex.
  *
  * While holding the allocator mutex the executing thread is protected from
-- 
1.8.4.5




More information about the devel mailing list