Fix an error in manually bringing in Sebastien's changes; Update some comments.

This commit is contained in:
Gregory Nutt 2016-11-17 16:15:06 -06:00
parent 9acd57c819
commit 47b52a2633
2 changed files with 7 additions and 4 deletions

View File

@ -144,7 +144,7 @@ static bool timer_notifier(FAR uint32_t *next_interval_us, FAR void *arg)
ret = sigqueue(upper->pid, upper->signo, upper->arg); ret = sigqueue(upper->pid, upper->signo, upper->arg);
#endif #endif
return ret == OK; return true;
} }
/************************************************************************************ /************************************************************************************

View File

@ -135,7 +135,10 @@ irqstate_t enter_critical_section(void)
* g_cpu_nestcount = 0 * g_cpu_nestcount = 0
* All CPU bits in g_cpu_irqset should be zero * All CPU bits in g_cpu_irqset should be zero
* *
* 2. We were in critical section, but up_irq_restore only * 2. We were in a critical section and interrupts on this
* this CPU were disabled -- this is an impossible case.
*
* 3. We were in critical section, but up_irq_save() only
* disabled local interrupts on a different CPU; * disabled local interrupts on a different CPU;
* Interrupts could still be enabled on this CPU. * Interrupts could still be enabled on this CPU.
* *
@ -143,8 +146,8 @@ irqstate_t enter_critical_section(void)
* g_cpu_nestcount = 0 * g_cpu_nestcount = 0
* The CPU bit in g_cpu_irqset should be zero * The CPU bit in g_cpu_irqset should be zero
* *
* 3. An extension of 2 is that we may be re-entered numerous * 4. An extension of 2 is that we may be re-entered numerous
* times from the interrupt handler. In that case: * times from the same interrupt handler. In that case:
* *
* g_cpu_irqlock = SP_LOCKED. * g_cpu_irqlock = SP_LOCKED.
* g_cpu_nestcount > 0 * g_cpu_nestcount > 0