diff --git a/drivers/timers/timer.c b/drivers/timers/timer.c index d1d82d6fb3..80c76a1b62 100644 --- a/drivers/timers/timer.c +++ b/drivers/timers/timer.c @@ -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); #endif - return ret == OK; + return true; } /************************************************************************************ diff --git a/sched/irq/irq_csection.c b/sched/irq/irq_csection.c index 63b17507a6..6eb5beca74 100644 --- a/sched/irq/irq_csection.c +++ b/sched/irq/irq_csection.c @@ -135,7 +135,10 @@ irqstate_t enter_critical_section(void) * g_cpu_nestcount = 0 * 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; * Interrupts could still be enabled on this CPU. * @@ -143,8 +146,8 @@ irqstate_t enter_critical_section(void) * g_cpu_nestcount = 0 * The CPU bit in g_cpu_irqset should be zero * - * 3. An extension of 2 is that we may be re-entered numerous - * times from the interrupt handler. In that case: + * 4. An extension of 2 is that we may be re-entered numerous + * times from the same interrupt handler. In that case: * * g_cpu_irqlock = SP_LOCKED. * g_cpu_nestcount > 0