diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-24 13:15:47 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-25 12:43:53 +0200 |
commit | 0e9d5b69cccac14f02f8370e1f75d3ac714a4350 (patch) | |
tree | d2bcd5c3b216ba018d8b11e58c8170014fc83f38 /cpukit/score/src/threadqflush.c | |
parent | confdefs.h: Fix heap alloc size estimate (diff) | |
download | rtems-0e9d5b69cccac14f02f8370e1f75d3ac714a4350.tar.bz2 |
mpci: Fix thread queue flush method
We must call the MP callout for proxies if we unblock them after a
thread queue extraction. This was missing in
_Thread_queue_Flush_critical(). Move thread remove timer and unblock
code to new function _Thread_Remove_timer_and_unblock().
Diffstat (limited to 'cpukit/score/src/threadqflush.c')
-rw-r--r-- | cpukit/score/src/threadqflush.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c index 9e54e1f370..a67f354273 100644 --- a/cpukit/score/src/threadqflush.c +++ b/cpukit/score/src/threadqflush.c @@ -95,8 +95,7 @@ size_t _Thread_queue_Do_flush_critical( next = _Chain_Next( node ); the_thread = THREAD_CHAIN_NODE_TO_THREAD( node ); - _Thread_Timer_remove( the_thread ); - _Thread_Unblock( the_thread ); + _Thread_Remove_timer_and_unblock( the_thread, queue ); node = next; } while ( node != tail ); |