yushuailong commented on code in PR #19563:
URL: https://github.com/apache/nuttx/pull/19563#discussion_r3662397646
##########
sched/sched/sched_critmonitor.c:
##########
@@ -454,18 +454,6 @@ void nxsched_switch_critmon(FAR struct tcb_s *from, FAR
struct tcb_s *to)
}
#endif /* CONFIG_SCHED_CRITMONITOR_MAXTIME_CSECTION */
-
-#if CONFIG_SCHED_CRITMONITOR_MAXTIME_PREEMPTION >= 0
Review Comment:
Duplicate was at L458-L468
(https://github.com/apache/nuttx/blob/f0c94bb64a/sched/sched/sched_critmonitor.c#L458-L468),
repeating the same to->premp_start = current already done at L419-L423
(https://github.com/apache/nuttx/blob/f0c94bb64a/sched/sched/sched_critmonitor.c#L419-L423).
--
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]