HomeFreeBSD

periodically save system time to hardware time-of-day clock
rS207360Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

periodically save system time to hardware time-of-day clock

This is done in kern_ntptime, perhaps not the best place.
This is done using resettodr().
Some features:

  • make save period configurable via tunable and sysctl
  • period of zero disables saving, setting a non-zero period re-enables it or reschedules it
  • do saving only if system clock is ntp-synchronized
  • save on shutdown

Discussed with: des, Peter Jeremy <peterjeremy@acm.org>
X-Maybe: save time near seconds boundary for better precision
MFC after: 2 weeks

Details

Provenance
avgAuthored on
Parents
rS207359: kern_ntptime: abstract time error check into a function
Branches
Unknown
Tags
Unknown

Event Timeline