]> Pileus Git - ~andy/linux/blobdiff - kernel/time/ntp.c
ntp: Access tick_length variable via ntp_tick_length()
[~andy/linux] / kernel / time / ntp.c
index ae7e13607d919079f2e139b9484544e3cc9ca680..f131ba62da623634b8ae9cf3c4960ce2218a7e30 100644 (file)
@@ -28,7 +28,7 @@ unsigned long                 tick_usec = TICK_USEC;
 /* ACTHZ period (nsecs): */
 unsigned long                  tick_nsec;
 
-u64                            tick_length;
+static u64                     tick_length;
 static u64                     tick_length_base;
 
 static struct hrtimer          leap_timer;
@@ -360,6 +360,13 @@ void ntp_clear(void)
        pps_clear();
 }
 
+
+u64 ntp_tick_length(void)
+{
+       return tick_length;
+}
+
+
 /*
  * Leap second processing. If in leap-insert state at the end of the
  * day, the system clock is set back one second; if in leap-delete