anchao commented on code in PR #15136:
URL: https://github.com/apache/nuttx/pull/15136#discussion_r1879639018
##########
sched/clock/clock_timekeeping.c:
##########
@@ -72,7 +73,7 @@ static int clock_get_current_time(FAR struct timespec *ts,
time_t sec;
int ret;
- flags = enter_critical_section();
+ flags = spin_lock_irqsave(&g_clock_lock);
ret = up_timer_gettick(&counter);
Review Comment:
```suggestion
ret = up_timer_gettick(&counter); <---
```
same issue with https://github.com/apache/nuttx/pull/15129, how to protect
lower half data
--
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]