[rtems commit] score: Delete _Objects_Put_for_get_isr_disable()

Sebastian Huber sebh at rtems.org
Wed May 20 07:12:03 UTC 2015


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon May  4 10:00:50 2015 +0200

score: Delete _Objects_Put_for_get_isr_disable()

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




More information about the vc mailing list