• Alessandro Rubini's avatar
    userspace: fix wr_date to mark tai_offset even at startup · 0098a6bb
    Alessandro Rubini authored
    Also, run "wr_date get" at boot once, so it parses leap-seconds.list
    and configures the kernel for the proper tai_offset.
    
    With the previous commit it worked with "wr_date get tohost",
    becase after the host is correctly in 2014 or so, all leap seconds are
    in the past.  But if we are not synced, the host is in 1970 and
    no leap second has already happened.
    
    If this code is unchanged in 2018, we'd better be off by 2 seconds
    than 37, so if linux reports a date earlier than 2014, use 2014 and
    fix tai_offset at 35.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    0098a6bb
Name
Last commit
Last update
..
host_tools Loading commit data...
include Loading commit data...
libsdb Loading commit data...
libwr Loading commit data...
mini-rpc @ 4c87062d
ppsi @ bcf8a856
rootfs_override Loading commit data...
snmpd Loading commit data...
tools Loading commit data...
wrsw_hal Loading commit data...
wrsw_rtud Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
devices.tar.gz Loading commit data...