Skip to content

Commit 4111558

Browse files
committed
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 <[email protected]>
1 parent 555701a commit 4111558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static u64 read_tod_clock(struct clocksource *cs)
237237
preempt_disable(); /* protect from changes to steering parameters */
238238
now = get_tod_clock();
239239
adj = tod_steering_end - now;
240-
if (unlikely((s64) adj >= 0))
240+
if (unlikely((s64) adj > 0))
241241
/*
242242
* manually steer by 1 cycle every 2^16 cycles. This
243243
* corresponds to shifting the tod delta by 15. 1s is

0 commit comments

Comments
 (0)