]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/time/ntp.c
highres: improve debug output
[linux-2.6-omap-h63xx.git] / kernel / time / ntp.c
index cb25649c6f505acaeb19cb28ec5c3464cf3027bf..b5e352597cbb628091718d2ac486b59564a95cfc 100644 (file)
@@ -11,7 +11,9 @@
 #include <linux/mm.h>
 #include <linux/time.h>
 #include <linux/timex.h>
-
+#include <linux/jiffies.h>
+#include <linux/hrtimer.h>
+#include <linux/capability.h>
 #include <asm/div64.h>
 #include <asm/timex.h>
 
@@ -114,13 +116,7 @@ void second_overflow(void)
                if (xtime.tv_sec % 86400 == 0) {
                        xtime.tv_sec--;
                        wall_to_monotonic.tv_sec++;
-                       /*
-                        * The timer interpolator will make time change
-                        * gradually instead of an immediate jump by one second
-                        */
-                       time_interpolator_update(-NSEC_PER_SEC);
                        time_state = TIME_OOP;
-                       clock_was_set();
                        printk(KERN_NOTICE "Clock: inserting leap second "
                                        "23:59:60 UTC\n");
                }
@@ -129,13 +125,7 @@ void second_overflow(void)
                if ((xtime.tv_sec + 1) % 86400 == 0) {
                        xtime.tv_sec++;
                        wall_to_monotonic.tv_sec--;
-                       /*
-                        * Use of time interpolator for a gradual change of
-                        * time
-                        */
-                       time_interpolator_update(NSEC_PER_SEC);
                        time_state = TIME_WAIT;
-                       clock_was_set();
                        printk(KERN_NOTICE "Clock: deleting leap second "
                                        "23:59:59 UTC\n");
                }