s390/stp: add support for leap seconds
authorSven Schnelle <svens@linux.ibm.com>
Fri, 12 Jun 2020 10:59:19 +0000 (12:59 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 26 Sep 2020 13:51:21 +0000 (15:51 +0200)
commitb2539aa0d7ff1e42c74a9dd8c73ec1c2771c9e5d
tree74471364f8829eba85a20ca628d944b5b50ae864
parent4ab79ed223d2ff32ffe16cfd841e064199341c34
s390/stp: add support for leap seconds

In the current implementation, leap seconds are only synchronized
during the bootup process when the STP clock is synced. If the Leap
second offset (LSO) changes the machine must be rebooted, which is
not desired. This patch adds the required code to handle Leap second
changes during runtime. If the Leap second changes, a Configuration
change machine check is triggered. The STP code than schedules a Leap
second insertion/deletion with do_adjtimex().

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/cio.h
arch/s390/include/asm/stp.h
arch/s390/kernel/time.c
drivers/s390/cio/chsc.c