]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/time/ntp.c
Merge branches 'timers/clocksource', 'timers/hrtimers', 'timers/nohz', 'timers/ntp...
[linux-2.6-omap-h63xx.git] / kernel / time / ntp.c
index ddb0465a6baab4d81d79ed7799f463e5f5d9cf55..1a20715bfd6e4854e96e96eb1541f792767aeaa5 100644 (file)
@@ -245,7 +245,7 @@ static void sync_cmos_clock(struct work_struct *work)
        if (abs(now.tv_nsec - (NSEC_PER_SEC / 2)) <= tick_nsec / 2)
                fail = update_persistent_clock(now);
 
-       next.tv_nsec = (NSEC_PER_SEC / 2) - now.tv_nsec;
+       next.tv_nsec = (NSEC_PER_SEC / 2) - now.tv_nsec - (TICK_NSEC / 2);
        if (next.tv_nsec <= 0)
                next.tv_nsec += NSEC_PER_SEC;