hujun260 commented on code in PR #15324: URL: https://github.com/apache/nuttx/pull/15324#discussion_r1896785279
########## include/nuttx/clock.h: ########## @@ -711,6 +711,7 @@ clock_t clock_systime_ticks(void); ****************************************************************************/ int clock_systime_timespec(FAR struct timespec *ts); +int clock_systime_timespec_rtc_nolock(FAR struct timespec *ts); Review Comment: done ########## sched/timer/timer_create.c: ########## @@ -63,10 +63,10 @@ static FAR struct posix_timer_s *timer_allocate(void) /* Try to get a preallocated timer from the free list */ #if CONFIG_PREALLOC_TIMERS > 0 - flags = spin_lock_irqsave(NULL); + flags = spin_lock_irqsave(&g_timers_lock); ret = (FAR struct posix_timer_s *) sq_remfirst((FAR sq_queue_t *)&g_freetimers); - spin_unlock_irqrestore(NULL, flags); + spin_unlock_irqrestore(&g_timers_lock, flags); Review Comment: done -- 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