summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/cio.h
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2020-06-12 12:59:19 +0200
committerVasily Gorbik <gor@linux.ibm.com>2020-09-26 15:51:21 +0200
commitb2539aa0d7ff1e42c74a9dd8c73ec1c2771c9e5d (patch)
tree74471364f8829eba85a20ca628d944b5b50ae864 /arch/s390/include/asm/cio.h
parent4ab79ed223d2ff32ffe16cfd841e064199341c34 (diff)
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>
Diffstat (limited to 'arch/s390/include/asm/cio.h')
-rw-r--r--arch/s390/include/asm/cio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/cio.h b/arch/s390/include/asm/cio.h
index b5bfb3123cb1..953a7316b30a 100644
--- a/arch/s390/include/asm/cio.h
+++ b/arch/s390/include/asm/cio.h
@@ -372,6 +372,7 @@ struct gen_pool *cio_gp_dma_create(struct device *dma_dev, int nr_pages);
/* Function from drivers/s390/cio/chsc.c */
int chsc_sstpc(void *page, unsigned int op, u16 ctrl, u64 *clock_delta);
int chsc_sstpi(void *page, void *result, size_t size);
+int chsc_stzi(void *page, void *result, size_t size);
int chsc_sgib(u32 origin);
#endif