Commit 03780c83 authored by Sven Schnelle's avatar Sven Schnelle Committed by Heiko Carstens

s390/stp: fix todoff size

The size of the TOD offset field in the stp info response is 64 bits.
Signed-off-by: default avatarSven Schnelle <svens@linux.ibm.com>
Reviewed-by: default avatarHeiko Carstens <hca@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 39d62336
...@@ -44,8 +44,8 @@ struct stp_sstpi { ...@@ -44,8 +44,8 @@ struct stp_sstpi {
u32 : 32; u32 : 32;
u32 ctnid[3]; u32 ctnid[3];
u32 : 32; u32 : 32;
u32 todoff[4]; u64 todoff;
u32 rsvd[48]; u32 rsvd[50];
} __packed; } __packed;
struct stp_tzib { struct stp_tzib {
......
...@@ -554,9 +554,7 @@ static int stp_sync_clock(void *data) ...@@ -554,9 +554,7 @@ static int stp_sync_clock(void *data)
while (atomic_read(&sync->cpus) != 0) while (atomic_read(&sync->cpus) != 0)
cpu_relax(); cpu_relax();
rc = 0; rc = 0;
if (stp_info.todoff[0] || stp_info.todoff[1] || if (stp_info.todoff || stp_info.tmd != 2) {
stp_info.todoff[2] || stp_info.todoff[3] ||
stp_info.tmd != 2) {
flags = vdso_update_begin(); flags = vdso_update_begin();
rc = chsc_sstpc(stp_page, STP_OP_SYNC, 0, rc = chsc_sstpc(stp_page, STP_OP_SYNC, 0,
&clock_delta); &clock_delta);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment