[rtems commit] mpci: Fix _MPCI_Enqueue_callout()

Sebastian Huber sebh at rtems.org
Thu Mar 22 08:06:08 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Mar 22 09:05:26 2018 +0100

mpci: Fix _MPCI_Enqueue_callout()

Update #3117.
Update #3182.

---

 cpukit/score/src/mpci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c
index 897033e..2d0244d 100644
--- a/cpukit/score/src/mpci.c
+++ b/cpukit/score/src/mpci.c
@@ -225,6 +225,7 @@ static void _MPCI_Enqueue_callout(
   Thread_queue_Context   *queue_context
 )
 {
+  _Thread_queue_Add_timeout_ticks( queue, the_thread, cpu_self, queue_context );
   _Thread_Dispatch_unnest( cpu_self );
 }
 
@@ -250,11 +251,11 @@ Status_Control _MPCI_Send_request_packet(
     &queue_context,
     STATES_WAITING_FOR_RPC_REPLY | extra_state
   );
+  _Thread_queue_Context_set_timeout_ticks( &queue_context, the_packet->timeout );
   _Thread_queue_Context_set_enqueue_callout(
     &queue_context,
     _MPCI_Enqueue_callout
   );
-  _Thread_queue_Context_set_enqueue_timeout_ticks( &queue_context, the_packet->timeout );
 
   cpu_self = _Thread_Dispatch_disable();
 



More information about the vc mailing list