anchao commented on code in PR #15139:
URL: https://github.com/apache/nuttx/pull/15139#discussion_r1881327443


##########
sched/clock/clock_systime_ticks.c:
##########
@@ -85,19 +85,23 @@ clock_t clock_systime_ticks(void)
 
   clock_systime_timespec(&ts);
   return clock_time2ticks(&ts);
-#elif defined(CONFIG_SCHED_TICKLESS_TICK_ARGUMENT)
+#elif defined(CONFIG_ALARM_ARCH) || \
+      defined(CONFIG_TIMER_ARCH) || \
+      defined(CONFIG_SCHED_TICKLESS)
+# ifdef CONFIG_SCHED_TICKLESS_TICK_ARGUMENT
   clock_t ticks = 0;
 
   up_timer_gettick(&ticks);
   return ticks;
-#elif defined(CONFIG_SCHED_TICKLESS)
+# else

Review Comment:
   merge CONFIG_SCHED_TICKLESS_TICK_ARGUMENT to line 88 and remove else branch



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