diff options
author | cheloha <cheloha@openbsd.org> | 2019-03-10 21:16:15 +0000 |
---|---|---|
committer | cheloha <cheloha@openbsd.org> | 2019-03-10 21:16:15 +0000 |
commit | 3c2e3f4b377e34f5a20c55aab760f7be3d8f7730 (patch) | |
tree | deb7b58450c1710f40decc5a40f6baddad61ad28 /usr.sbin/npppd | |
parent | Delete useless calls to setlocale(3): (diff) | |
download | wireguard-openbsd-3c2e3f4b377e34f5a20c55aab760f7be3d8f7730.tar.xz wireguard-openbsd-3c2e3f4b377e34f5a20c55aab760f7be3d8f7730.zip |
Move adjtimedelta from kern_time.c to kern_tc.c.
This will simplify upcoming MP-safety diffs for the timecounting layer.
adjtimedelta is now accessed nowhere outside of kern_tc.c, so we can
remove its extern declaration from kernel.h. Zeroing adjtimedelta
within timecounter_mtx before we jump the real-time clock is also a
bit safer than what we do now, as we are not racing a simultaneous
tc_windup() call from hardclock(), which itself can modify adjtimedelta
via ntp_update_second().
Discussed with visa@ and mpi@.
ok visa@
Diffstat (limited to 'usr.sbin/npppd')
0 files changed, 0 insertions, 0 deletions