mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 12:49:00 +00:00
Setting the current time in RTC may be a blocking operation (driver needs to wait for oscillator stabilization after reset and so on). This may cause the unwanted effect of clock_settime blocking the code execution for a considerable amount of time. The solution is to plan a low priority work that takes care of setting the time in RTC and let clock_settime continue. We don't have to check if the work is available, just cancel it if there is a new time set request. This is used only if CONFIG_SCHED_LPWORK is enabled. Signed-off-by: Michal Lenc <michallenc@seznam.cz> |
||
|---|---|---|
| .. | ||
| clock.c | ||
| clock.h | ||
| clock_adjtime.c | ||
| clock_delay.c | ||
| clock_getres.c | ||
| clock_gettime.c | ||
| clock_initialize.c | ||
| clock_notifier.c | ||
| clock_perf.c | ||
| clock_realtime2absticks.c | ||
| clock_sched_ticks.c | ||
| clock_settime.c | ||
| clock_systime_ticks.c | ||
| clock_systime_timespec.c | ||
| clock_timekeeping.c | ||
| clock_timekeeping.h | ||
| CMakeLists.txt | ||
| Make.defs | ||