pussuw commented on code in PR #14761:
URL: https://github.com/apache/nuttx/pull/14761#discussion_r1839875236


##########
sched/irq/irq_csection.c:
##########
@@ -275,7 +292,7 @@ irqstate_t enter_critical_section(void)
 
   /* Check if we were called from an interrupt handler */
 
-  if (!up_interrupt_context())
+  if (!csection_degraded() && !up_interrupt_context())

Review Comment:
   Maybe for style consistently you could use the dummy-if in the non-SMP case 
as well. This is fine by me too.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to