diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2020-07-20 14:28:36 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2020-07-22 17:02:13 +0200 |
commit | 411155820bb348e71ecc5b1db147b36af98cbc96 (patch) | |
tree | 6e4843db3e6862258dfad624e09d34d40843f8fb /arch/s390 | |
parent | 555701a714f77e01490f633c1080cf97f0ede1f0 (diff) |
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')
-rw-r--r-- | arch/s390/kernel/time.c | 2 |
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 |