Skip to content

Commit 555701a

Browse files
committed
s390/time: select CLOCKSOURCE_VALIDATE_LAST_CYCLE
The value returned by read_tod_clock() will overflow on September 17th 2042. To avoid that system time jumps back select CLOCKSOURCE_VALIDATE_LAST_CYCLE which enables a sanity check in order to prevent negative "delta" values. Signed-off-by: Heiko Carstens <[email protected]>
1 parent 58e1571 commit 555701a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/s390/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ config S390
125125
select HAVE_ARCH_JUMP_LABEL_RELATIVE
126126
select HAVE_ARCH_KASAN
127127
select HAVE_ARCH_KASAN_VMALLOC
128+
select CLOCKSOURCE_VALIDATE_LAST_CYCLE
128129
select CPU_NO_EFFICIENT_FFS if !HAVE_MARCH_Z9_109_FEATURES
129130
select HAVE_ARCH_SECCOMP_FILTER
130131
select HAVE_ARCH_SOFT_DIRTY

0 commit comments

Comments
 (0)