aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/ntp.c
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2008-05-01 07:34:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-01 11:03:59 -0400
commit8383c42399f394a89bd6c2f03632c53689bdde7a (patch)
treec3f3a42a546a4afe3746e5894bcd425dc5a3d0bb /kernel/time/ntp.c
parent7fc5c78409479d826341b103bdf734cb4fb02436 (diff)
ntp: remove current_tick_length()
current_tick_length used to do a little more, but now it just returns tick_length, which we can also access directly at the few places, where it's needed. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Cc: john stultz <johnstul@us.ibm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/time/ntp.c')
-rw-r--r--kernel/time/ntp.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
index a8fd1ba1ef19..df9718bac8d0 100644
--- a/kernel/time/ntp.c
+++ b/kernel/time/ntp.c
@@ -23,7 +23,8 @@
23 */ 23 */
24unsigned long tick_usec = TICK_USEC; /* USER_HZ period (usec) */ 24unsigned long tick_usec = TICK_USEC; /* USER_HZ period (usec) */
25unsigned long tick_nsec; /* ACTHZ period (nsec) */ 25unsigned long tick_nsec; /* ACTHZ period (nsec) */
26static u64 tick_length, tick_length_base; 26u64 tick_length;
27static u64 tick_length_base;
27 28
28#define MAX_TICKADJ 500 /* microsecs */ 29#define MAX_TICKADJ 500 /* microsecs */
29#define MAX_TICKADJ_SCALED (((u64)(MAX_TICKADJ * NSEC_PER_USEC) << \ 30#define MAX_TICKADJ_SCALED (((u64)(MAX_TICKADJ * NSEC_PER_USEC) << \
@@ -203,19 +204,6 @@ void second_overflow(void)
203 } 204 }
204} 205}
205 206
206/*
207 * Return how long ticks are at the moment, that is, how much time
208 * update_wall_time_one_tick will add to xtime next time we call it
209 * (assuming no calls to do_adjtimex in the meantime).
210 * The return value is in fixed-point nanoseconds shifted by the
211 * specified number of bits to the right of the binary point.
212 * This function has no side-effects.
213 */
214u64 current_tick_length(void)
215{
216 return tick_length;
217}
218
219#ifdef CONFIG_GENERIC_CMOS_UPDATE 207#ifdef CONFIG_GENERIC_CMOS_UPDATE
220 208
221/* Disable the cmos update - used by virtualization and embedded */ 209/* Disable the cmos update - used by virtualization and embedded */