s390/stp: add sysfs file to show scheduled leap seconds
authorSven Schnelle <svens@linux.ibm.com>
Wed, 17 Jun 2020 08:58:47 +0000 (10:58 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 26 Sep 2020 13:51:21 +0000 (15:51 +0200)
commit4fb53dde770cc095a6e279ca9d9c72d49488cdb3
tree183528a751eebf149b7b41c2ea4be03d4b137aa0
parentb2539aa0d7ff1e42c74a9dd8c73ec1c2771c9e5d
s390/stp: add sysfs file to show scheduled leap seconds

This patch introduces /sys/devices/system/stp/scheduled_leap_seconds,
which will contain either 0,0 if no leap second is scheduled, or
the UTC timestamp + leap second offset.

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/kernel/time.c