aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/time.c
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2022-05-02 11:12:09 +0200
committerHeiko Carstens <hca@linux.ibm.com>2022-05-11 14:40:57 +0200
commit03780c83c78546310c084ef3df69da2a0bafbcb5 (patch)
tree4d63a3c67049492a554f356d29ffdd0f97e1fc3f /arch/s390/kernel/time.c
parents390/pai: add support for cryptography counters (diff)
downloadlinux-dev-03780c83c78546310c084ef3df69da2a0bafbcb5.tar.xz
linux-dev-03780c83c78546310c084ef3df69da2a0bafbcb5.zip
s390/stp: fix todoff size
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>
Diffstat (limited to '')
-rw-r--r--arch/s390/kernel/time.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c
index 326cb8f75f58..2506bfdc91c7 100644
--- a/arch/s390/kernel/time.c
+++ b/arch/s390/kernel/time.c
@@ -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);