Commit 41115582 authored by Heiko Carstens's avatar Heiko Carstens

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: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 555701a7
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment