patacongo edited a comment on issue #1733:
URL: 
https://github.com/apache/incubator-nuttx/issues/1733#issuecomment-688932789


   > 
   > 
   > I have really no idea, my understanding of this part of NuttX is very 
limited.
   
   And my memory is very limited.  People think that because I wrote most of 
this code (at least originally), I should understand it all.  That 
KEEP_ALIVE_HACK was added by commit 6546fa39c7a way back in 2014 with this 
commit:
   
       commit 6546fa39c7a292e919d1ea396d67bea8242f2c4b
       Author: Gregory Nutt <gn...@nuttx.org>
       Date:   Tue Aug 12 11:12:00 2014 -0600
       
           Tickless Stuff:  Back out the risky timer operations when the 
ready-to-run list is modified. 
           That is unsafe.  An ugly workaround is just to keep an interval 
timer going all of the time
           with a minimum duration equal to the timeslice interval.
   
   That was after some attempts to use the timer interfaces in that context.  
That commit is a good reference because it shows some of the non-viable code 
that was removed.  Commit 0d71260bf2d which added Sporadic support brought that 
KEEP_ALIVE_HACK logic to its current state.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to