[PATCH 2/3] score: Simplify _Thread_queue_Dequeue_priority()

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Nov 25 14:32:35 UTC 2013


---
 cpukit/score/src/threadqdequeuepriority.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/src/threadqdequeuepriority.c b/cpukit/score/src/threadqdequeuepriority.c
index fda101d..f958d04 100644
--- a/cpukit/score/src/threadqdequeuepriority.c
+++ b/cpukit/score/src/threadqdequeuepriority.c
@@ -91,14 +91,14 @@ dequeue:
 
   if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
     _ISR_Enable( level );
-    _Thread_Unblock( the_thread );
   } else {
     _Watchdog_Deactivate( &the_thread->Timer );
     _ISR_Enable( level );
     (void) _Watchdog_Remove( &the_thread->Timer );
-    _Thread_Unblock( the_thread );
   }
 
+  _Thread_Unblock( the_thread );
+
 #if defined(RTEMS_MULTIPROCESSING)
   if ( !_Objects_Is_local_id( the_thread->Object.id ) )
     _Thread_MP_Free_proxy( the_thread );
-- 
1.7.7




More information about the devel mailing list