aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2020-07-20 14:28:36 +0200
committerHeiko Carstens <hca@linux.ibm.com>2020-07-22 17:02:13 +0200
commit411155820bb348e71ecc5b1db147b36af98cbc96 (patch)
tree6e4843db3e6862258dfad624e09d34d40843f8fb /arch/s390/kernel
parents390/time: select CLOCKSOURCE_VALIDATE_LAST_CYCLE (diff)
downloadlinux-dev-411155820bb348e71ecc5b1db147b36af98cbc96.tar.xz
linux-dev-411155820bb348e71ecc5b1db147b36af98cbc96.zip
s390/time: improve comparison for tod steering
It doesn't make sense to add zero shifted by 15. It's still zero. Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c
index 317059684847..513e59d08a55 100644
--- a/arch/s390/kernel/time.c
+++ b/arch/s390/kernel/time.c
@@ -237,7 +237,7 @@ static u64 read_tod_clock(struct clocksource *cs)
preempt_disable(); /* protect from changes to steering parameters */
now = get_tod_clock();
adj = tod_steering_end - now;
- if (unlikely((s64) adj >= 0))
+ if (unlikely((s64) adj > 0))
/*
* manually steer by 1 cycle every 2^16 cycles. This
* corresponds to shifting the tod delta by 15. 1s is