linux-kernelorg-stable/arch/um/kernel
Johannes Berg 7f3414226b um: time: fix initialization in time-travel mode
In time-travel mode, since my previous patch, the start time was
initialized too late, so that the system would read it before we
set it, thus always starting system time at 0 (1970-01-01). This
happens because timekeeping_init() reads the time and is called
before time_init().

Unfortunately, I didn't see this before because I was testing it
only with the RTC patch applied (and enabled), and then the time
is read again by the RTC a little - after time_init() this time.

Fix this by just doing the initialization whenever necessary.

Fixes: 2701c1bd91 ("um: time: Fix read_persistent_clock64() in time-travel")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2021-01-26 22:11:38 +01:00
..
skas arch/um: partially revert the conversion to __section() macro 2020-10-26 15:39:37 -07:00
Makefile
asm-offsets.c
config.c.in
dyn.lds.S vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG 2020-09-01 09:50:35 +02:00
early_printk.c
exec.c
exitcode.c
gmon_syms.c
gprof_syms.c
initrd.c
irq.c um: irq/sigio: Support suspend/resume handling of workaround IRQs 2020-12-13 22:42:01 +01:00
kmsg_dump.c um: kmsg_dumper: always dump when not tty console 2021-01-26 22:11:37 +01:00
ksyms.c
maccess.c
mem.c asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
physmem.c
process.c Revert "um: allocate a guard page to helper threads" 2021-01-26 22:11:38 +01:00
ptrace.c
reboot.c
sigio.c um: Support dynamic IRQ allocation 2020-12-13 22:22:08 +01:00
signal.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
stacktrace.c
syscall.c
sysrq.c um: Clean up stacktrace dump 2020-10-11 23:25:07 +02:00
time.c um: time: fix initialization in time-travel mode 2021-01-26 22:11:38 +01:00
tlb.c Revert "um: support some of ARCH_HAS_SET_MEMORY" 2021-01-26 22:11:38 +01:00
trap.c mm: clean up the last pieces of page fault accountings 2020-08-12 10:58:04 -07:00
um_arch.c um: stdio_console: Make preferred console 2021-01-26 22:11:37 +01:00
umid.c
uml.lds.S vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG 2020-09-01 09:50:35 +02:00
vmlinux.lds.S