• Alessandro Rubini's avatar
    wrs-time: change Unix time too · 4dae1e34
    Alessandro Rubini authored
    time_operations->set() is rarely called for the white rabbit switch.
    Besides the special case with a NULL time pointer, it is only called
    by the normal servo, before WR-Mode is activated on the relevant link.
    This happens once only.
    
    In this situation, we should set Unix time, in addition to changing
    the WR timers. The code, as laid out would change Unix time upon
    repeated invocation of this function, but not the first time. Thus,
    we risked keeping a wrong system time even if WR synced to the
    external world.  This means syslog messages would be stamped at
    January 1970.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    4dae1e34
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...