]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/stp: fix todoff size
authorSven Schnelle <svens@linux.ibm.com>
Mon, 2 May 2022 09:12:09 +0000 (11:12 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 11 May 2022 12:40:57 +0000 (14:40 +0200)
The size of the TOD offset field in the stp info response is 64 bits.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@de.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/stp.h
arch/s390/kernel/time.c

index ba07463897c10e4288ed375c4ff1d3de3fefc11f..4d74d7e33340b1e67e569acebd6e911d9bf991d6 100644 (file)
@@ -44,8 +44,8 @@ struct stp_sstpi {
        u32             : 32;
        u32 ctnid[3];
        u32             : 32;
-       u32 todoff[4];
-       u32 rsvd[48];
+       u64 todoff;
+       u32 rsvd[50];
 } __packed;
 
 struct stp_tzib {
index 326cb8f75f58ef21cc73ba7c244103c8e13e509a..2506bfdc91c7ef36a5a3f4a63ec4e3de2e1f6373 100644 (file)
@@ -554,9 +554,7 @@ static int stp_sync_clock(void *data)
                while (atomic_read(&sync->cpus) != 0)
                        cpu_relax();
                rc = 0;
-               if (stp_info.todoff[0] || stp_info.todoff[1] ||
-                   stp_info.todoff[2] || stp_info.todoff[3] ||
-                   stp_info.tmd != 2) {
+               if (stp_info.todoff || stp_info.tmd != 2) {
                        flags = vdso_update_begin();
                        rc = chsc_sstpc(stp_page, STP_OP_SYNC, 0,
                                        &clock_delta);