incubator-nuttx/sched/clock
Petteri Aimonen 1825f9534c adjtime: Rewrite implementation to work for RTC and tickless kernel
Previous adjtime() implementation was limited to adjusting system
timer tick period. This commit reimplements the internals to use
a kernel watchdog timer. Platform-independent part of the code now
works also for adjusting hires RTC and tickless timer rate.

User code facing API is unchanged. Architecture code API has changed:
up_adj_timer_period() is replaced by up_adjtime().

Other improvements:

- Support query of remaining adjustment by passing NULL to first
  argument of adjtime(). This matches Linux behavior.

- Improve resolution available for architecture driver, previously
  limited to 1 microsecond per tick. Now 1 nanosecond per second.
2023-11-14 19:47:40 -08:00
..
CMakeLists.txt timer: handle perf count overflow 2023-10-02 16:11:43 +02:00
Make.defs timer: handle perf count overflow 2023-10-02 16:11:43 +02:00
clock.c
clock.h adjtime: Rewrite implementation to work for RTC and tickless kernel 2023-11-14 19:47:40 -08:00
clock_abstime2ticks.c
clock_adjtime.c adjtime: Rewrite implementation to work for RTC and tickless kernel 2023-11-14 19:47:40 -08:00
clock_dow.c
clock_gettime.c clock: replace all up_perf_xx with perf_xx 2023-10-02 16:11:43 +02:00
clock_initialize.c adjtime: Rewrite implementation to work for RTC and tickless kernel 2023-11-14 19:47:40 -08:00
clock_perf.c timer: handle perf count overflow 2023-10-02 16:11:43 +02:00
clock_settime.c adjtime: Rewrite implementation to work for RTC and tickless kernel 2023-11-14 19:47:40 -08:00
clock_systime_ticks.c sched: return 0 from clock_systime_ticks if failed 2023-09-19 16:17:08 +08:00
clock_systime_timespec.c
clock_timekeeping.c
clock_timekeeping.h