s390/time: add leap seconds to initial system time
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 31 May 2016 10:47:03 +0000 (12:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Jun 2016 13:58:20 +0000 (15:58 +0200)
commit936cc855ffe808b428cf75116fe031af9f12237e
tree48be65e1168b3ce87dba556cfca3f95f647c95c8
parent4027789192d149678262ad606b2d7e2a61bed0f2
s390/time: add leap seconds to initial system time

The PTFF instruction can be used to retrieve information about UTC
including the current number of leap seconds. Use this value to
convert the coordinated server time value of the TOD clock to a
proper UTC timestamp to initialize the system time. Without this
correction the system time will be off by the number of leap seonds
until it has been corrected via NTP.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/timex.h
arch/s390/kernel/time.c
This page took 0.026343 seconds and 5 git commands to generate.