From: Heiko Carstens Date: Mon, 20 Jul 2020 12:28:36 +0000 (+0200) Subject: s390/time: improve comparison for tod steering X-Git-Tag: v5.9-rc1~211^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=411155820bb348e71ecc5b1db147b36af98cbc96;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index 3170596848477..513e59d08a55c 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