diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2019-03-10 21:16:16 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2019-03-10 21:16:16 +0000 |
commit | 00b8abed1a52f1db369084a1b437f280070f870d (patch) | |
tree | f2a607ed1e5bbdf465daf0bb5bd76744af57a64e /usr.sbin | |
parent | 7a5a47d67e40332e6adc28df84cadec89a6a4b76 (diff) |
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')
0 files changed, 0 insertions, 0 deletions