Add REVISIT to comments.

This commit is contained in:
Gregory Nutt 2017-01-13 09:40:17 -06:00
parent 902c41462d
commit a51b5b7e17
2 changed files with 8 additions and 2 deletions

View File

@ -319,7 +319,10 @@ bool sched_addreadytorun(FAR struct tcb_s *btcb)
/* Adjust global IRQ controls. This works differently if we are
* performing a context switch from an interrupt handler and the
* interrupt handler has established a critical section. We can
* detect this case when g_cpu_nestcount[me] > 0:
* detect this case when g_cpu_nestcount[me] > 0.
*
* REVISIT: Could this not cause logic to exit the critical
* section prematurely in the context switch sequence?
*/
if (g_cpu_nestcount[me] <= 0)

View File

@ -263,7 +263,10 @@ bool sched_removereadytorun(FAR struct tcb_s *rtcb)
/* Adjust global IRQ controls. This works differently if we are
* performing a context switch from an interrupt handler and the
* interrupt handler has established a critical section. We can
* detect this case when g_cpu_nestcount[me] > 0:
* detect this case when g_cpu_nestcount[me] > 0.
*
* REVISIT: Could this not cause logic to exit the critical section
* prematurely in the context switch sequence?
*/
if (g_cpu_nestcount[me] <= 0)