diff options
Diffstat (limited to 'kernel/time/ntp.c')
-rw-r--r-- | kernel/time/ntp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index 4c8d85421d24..9c114b726ab3 100644 --- a/kernel/time/ntp.c +++ b/kernel/time/ntp.c | |||
@@ -244,7 +244,7 @@ static void sync_cmos_clock(unsigned long dummy) | |||
244 | if (abs(now.tv_nsec - (NSEC_PER_SEC / 2)) <= tick_nsec / 2) | 244 | if (abs(now.tv_nsec - (NSEC_PER_SEC / 2)) <= tick_nsec / 2) |
245 | fail = update_persistent_clock(now); | 245 | fail = update_persistent_clock(now); |
246 | 246 | ||
247 | next.tv_nsec = (NSEC_PER_SEC / 2) - now.tv_nsec; | 247 | next.tv_nsec = (NSEC_PER_SEC / 2) - now.tv_nsec - (TICK_NSEC / 2); |
248 | if (next.tv_nsec <= 0) | 248 | if (next.tv_nsec <= 0) |
249 | next.tv_nsec += NSEC_PER_SEC; | 249 | next.tv_nsec += NSEC_PER_SEC; |
250 | 250 | ||