GUIDINGLI opened a new pull request #4413:
URL: https://github.com/apache/incubator-nuttx/pull/4413


   ## Summary
   
   sched/wdog: fix switch_context caused error in wd_start()
       
       Thead A:                     Thread B:
       wd_start(wdogX)
       wd_cancel
       nxsched_cancel_timer  -->    wd_start(wdogX)
                                    wd_cancel
                                    add wdogX to g_wdactivelist
                             <--
       add wdogX to g_wdactivelist
       
       then, you will find wdogX add twice.
   
   sched/wdog: move SMP enter_critical_section to sched_timerexpiration.c
   
   ## Impact
   
   when CONFIG_SCHED_TICKLESS=y
   
   wd_expiration execute in BOTH interrupt context or critical_section
   =>
   wd_expiration execute in ONLY interrupt context
   
   ## Testing
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to