]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17c663db10d0d7ac21859df507b646cf77b8a49d
tree48be65e1168b3ce87dba556cfca3f95f647c95c8
parent06e284db58c3512384f819e66c4b0d761accc6c0
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