diff options
author | john stultz <johnstul@us.ibm.com> | 2006-06-26 03:25:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 12:58:20 -0400 |
commit | 260a42309b31cbc54eb4b6b85649e412bcad053f (patch) | |
tree | 51efc7bb51075b0d25d0e8465d3c056e6a57fe16 /include/linux/timex.h | |
parent | ad596171ed635c51a9eef829187af100cbf8dcf7 (diff) |
[PATCH] Time: Let user request precision from current_tick_length()
Change the current_tick_length() function so it takes an argument which
specifies how much precision to return in shifted nanoseconds. This provides
a simple way to convert between NTPs internal nanoseconds shifted by
(SHIFT_SCALE - 10) to other shifted nanosecond units that are used by the
clocksource abstraction.
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/timex.h')
-rw-r--r-- | include/linux/timex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/timex.h b/include/linux/timex.h index 34d3ccff7bbb..1ba3071fcb82 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
@@ -304,7 +304,7 @@ time_interpolator_reset(void) | |||
304 | #endif /* !CONFIG_TIME_INTERPOLATION */ | 304 | #endif /* !CONFIG_TIME_INTERPOLATION */ |
305 | 305 | ||
306 | /* Returns how long ticks are at present, in ns / 2^(SHIFT_SCALE-10). */ | 306 | /* Returns how long ticks are at present, in ns / 2^(SHIFT_SCALE-10). */ |
307 | extern u64 current_tick_length(void); | 307 | extern u64 current_tick_length(long); |
308 | 308 | ||
309 | extern int do_adjtimex(struct timex *); | 309 | extern int do_adjtimex(struct timex *); |
310 | 310 | ||