anchao commented on code in PR #15138: URL: https://github.com/apache/nuttx/pull/15138#discussion_r1879925392
########## sched/clock/clock_adjtime.c: ########## @@ -108,7 +109,7 @@ static int adjtime_start(long long adjust_usec) ppb = -ppb_limit; } - flags = enter_critical_section(); + flags = spin_lock_irqsave(&g_adjtime_lock); Review Comment: We must ensure that each branch is safe. If all codes and variables are within the visible range, such modification is acceptable. Otherwise, please cautious. -- 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