hujun260 commented on code in PR #15324: URL: https://github.com/apache/nuttx/pull/15324#discussion_r1901464191
########## sched/clock/clock_initialize.c: ########## @@ -373,12 +400,18 @@ void clock_resynchronize(FAR struct timespec *rtc_diff) /* Add the sleep time to correct system timer */ - g_system_ticks += SEC2TICK(rtc_diff->tv_sec); - g_system_ticks += NSEC2TICK(rtc_diff->tv_nsec); + clock_t diff_ticks = SEC2TICK(rtc_diff->tv_sec) + + NSEC2TICK(rtc_diff->tv_nsec); + +#ifdef CONFIG_SYSTEM_TIME64 + atomic64_fetch_add((FAR atomic64_t *)&g_system_ticks, diff_ticks); Review Comment: done in https://github.com/apache/nuttx/pull/15415 -- 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