v01d commented on pull request #3155: URL: https://github.com/apache/incubator-nuttx/pull/3155#issuecomment-805800360
> @v01d @davids5 The enter_critical_section() function is located in the pm_changestate() function. Ok, so I guess that it is safe to be called anywhere then. I can't really see why it should need to be called from IDLE loop either. The only issue I can imagine is an interruption between checkstate and change 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