yangguangcai1 commented on code in PR #10000:
URL: https://github.com/apache/nuttx/pull/10000#discussion_r1282639087
##########
sched/sched/sched_timerexpiration.c:
##########
@@ -533,6 +533,16 @@ void nxsched_alarm_tick_expiration(clock_t ticks)
{
unsigned int elapsed;
unsigned int nexttime;
+ irqstate_t flags;
+
+ /* If we are running on a single CPU architecture, then we know interrupts
+ * are disabled and there is no need to explicitly call
+ * enter_critical_section(). However, in the SMP case,
+ * enter_critical_section() is required prevent multiple cpu to enter
+ * oneshot_tick_start.
+ */
+
+ flags = enter_critical_section();
Review Comment:
done
--
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]