mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-04-05 01:59:55 +00:00
cpukit/rtems: Set the timer's chain node to off chain before appending
The timer's node is shared with the RB tree and before placing it on the timer server's chain the node needs to set to off chain or RTEMS_DEBUG may assert.
This commit is contained in:
committed by
Kinsey Moore
parent
87cf29708f
commit
5a16f9dd50
@@ -86,6 +86,7 @@ void _Timer_server_Routine_adaptor( Watchdog_Control *the_watchdog )
|
||||
cpu = _Watchdog_Get_CPU( &the_timer->Ticker );
|
||||
the_timer->stop_time = _Timer_Get_CPU_ticks( cpu );
|
||||
wakeup = _Chain_Is_empty( &ts->Pending );
|
||||
_Chain_Set_off_chain( &the_timer->Ticker.Node.Chain );
|
||||
_Chain_Append_unprotected( &ts->Pending, &the_timer->Ticker.Node.Chain );
|
||||
|
||||
_Timer_server_Release( ts, &lock_context );
|
||||
|
||||
Reference in New Issue
Block a user