Fix-Point commented on code in PR #15044: URL: https://github.com/apache/nuttx/pull/15044#discussion_r1877751662
########## drivers/timers/arch_alarm.c: ########## @@ -46,6 +46,7 @@ static FAR struct oneshot_lowerhalf_s *g_oneshot_lower; #ifndef CONFIG_SCHED_TICKLESS static clock_t g_current_tick; +static clock_t g_base_tick; Review Comment: I patched NuttX with the `rtc = true` and then compile the sim/nsh using `/tools/configure.sh sim:nsh && make -j$(nproc)`. The test result is listed below: ```bash nsh> sleep 1 nsh> hello [4.750000000] trying to get timedlock, curr_tick 475 [6.760000000] failed to get timedlock, curr_tick 676 nsh> hello [8.380000000] trying to get timedlock, curr_tick 838 [10.390000000] failed to get timedlock, curr_tick 1039 nsh> hello [13.570000000] trying to get timedlock, curr_tick 1357 [15.580000000] failed to get timedlock, curr_tick 1558 nsh> hello [17.900000000] trying to get timedlock, curr_tick 1790 [19.910000000] failed to get timedlock, curr_tick 1991 nsh> ``` From the result, I did not find anything wrong. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org