In the sysclock commit I tried to make 'boottime' a fixed value, but it
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 3 Apr 2004 05:30:10 +0000 (05:30 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 3 Apr 2004 05:30:10 +0000 (05:30 +0000)
commit60b2809bd63f5831bc7433aea691d7535a5f43fc
tree1b88bea84521ca191d8957902a48bbeae9ee5855
parent0657777886f1463750e4ece3e88d090044709c2a
In the sysclock commit I tried to make 'boottime' a fixed value, but it
ended up being set to the superblock update time (time of last shutdown)
rather then the real time clock during boot.

Give up on making it a fixed value and just set it to the current time
minus the compensated elapsed time (gd->gd_time_seconds) whenever the
time of day is stepped.  Subsystems which use boottime as an identifier,
such as NFS, already copy it and this change effectively returns boottime
operation to its pre-sysclock algorithm.

Reported-by: YONETANI Tomokazu <qhwt+dragonfly-bugs@les.ath.cx> and others
sys/kern/kern_clock.c