Page MenuHomeFreeBSD

Simplify suspend / resume timekeeping stuff.
AbandonedPublic

Authored by imp on Jan 16 2018, 2:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 31 2024, 6:23 AM
Unknown Object (File)
Dec 23 2023, 12:48 AM
Unknown Object (File)
Oct 17 2023, 4:49 AM
Unknown Object (File)
Oct 17 2023, 3:51 AM
Unknown Object (File)
Aug 24 2023, 6:57 PM
Unknown Object (File)
Jul 4 2023, 4:03 AM
Unknown Object (File)
May 23 2023, 5:23 AM
Unknown Object (File)
May 11 2023, 3:03 PM
Subscribers
None

Details

Reviewers
None
Summary

Move all time resetting after suspend / resume into resettodr() and
inittodr(). This puts all policy in those routines for trades offs
between speed and accuracy. resttodr runs when ntpd says the time is
good, or when we set the time. atrtc will be enhanced to better
preserve phase in its settime routine so resettodr() will accurately
encode the phase in the RTC so when we resume we get accurate phase by
just waiting for the next second change.

Move warming up the timeounters into tc_setclock just before we call
tc_windup. This allows the apm and acpi code to be very similar.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33084
Build 30457: arc lint + arc unit