Files
nuttx/sched/clock
yushuailong e37509e00a sched/clock: Fix timekeeping adjtime convergence.
Clamp each wall-clock adjustment in both positive and negative directions, then subtract the applied amount from the remaining adjustment. This makes adjtime converge to zero and prevents large negative adjustments from slewing the clock in the wrong direction.

Assisted-by: OpenAI Codex
Signed-off-by: yushuailong <yyyusl@qq.com>
2026-09-13 11:12:56 +08:00
..