[rtems commit] score: Simplify _Thread_queue_Dequeue_priority()
Sebastian Huber
sebh at rtems.org
Tue Nov 26 08:55:41 UTC 2013
Module: rtems
Branch: master
Commit: 96962b5d7a5171065c774281731c9f588be53882
Changeset: http://git.rtems.org/rtems/commit/?id=96962b5d7a5171065c774281731c9f588be53882
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Nov 21 15:09:46 2013 +0100
score: Simplify _Thread_queue_Dequeue_priority()
---
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 );
More information about the vc
mailing list