Skip to content

Commit

Permalink
s390/stp: fix todoff size
Browse files Browse the repository at this point in the history
The size of the TOD offset field in the stp info response is 64 bits.

Signed-off-by: Sven Schnelle <[email protected]>
Reviewed-by: Heiko Carstens <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
  • Loading branch information
svens-s390 authored and hcahca committed May 11, 2022
1 parent 39d6233 commit 03780c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions arch/s390/include/asm/stp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions arch/s390/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 03780c8

Please sign in to comment.