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


##########
sched/clock/clock_systime_timespec.c:
##########
@@ -77,13 +77,14 @@ int clock_systime_timespec(FAR struct timespec *ts)
       ts->tv_sec = 0;
       ts->tv_nsec = 0;
     }
-#elif defined(CONFIG_SCHED_TICKLESS_TICK_ARGUMENT)
+#elif defined(CONFIG_ALARM_ARCH) || \
+      defined(CONFIG_TIMER_ARCH) || \
+      defined(CONFIG_SCHED_TICKLESS) || \
+      defined(CONFIG_SCHED_TICKLESS_TICK_ARGUMENT)
   clock_t ticks = 0;
 
   up_timer_gettick(&ticks);
   clock_ticks2time(ts, ticks);

Review Comment:
   ```suggestion
     up_timer_gettime(ts);
   ```



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