OSDN Git Service

time: Complete NTP adjustment threshold judging conditions
authorpang.xunlei <pang.xunlei@linaro.org>
Thu, 9 Oct 2014 07:04:31 +0000 (15:04 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 21 Nov 2014 19:59:56 +0000 (11:59 -0800)
commit659bc17b80c692e0ccda757e207fc4666d9b3e71
treefa3862991f0e8490b3b20e862a3d16721daa786e
parent6067dc5a8c2b1b57e67eaf1125db1d63c1ed6361
time: Complete NTP adjustment threshold judging conditions

The clocksource mult-adjustment threshold is [mult-maxadj, mult+maxadj],
timekeeping_adjust() only deals with the upper threshold, but misses the
lower threshold.

This patch adds the lower threshold judging condition.

Signed-off-by: pang.xunlei <pang.xunlei@linaro.org>
[jstultz: Minor fix for > 80 char line]
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/timekeeping.c