s390/time: improve comparison for tod steering
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 20 Jul 2020 12:28:36 +0000 (14:28 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 22 Jul 2020 15:02:13 +0000 (17:02 +0200)
It doesn't make sense to add zero shifted by 15. It's still zero.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/time.c

index 3170596..513e59d 100644 (file)
@@ -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