diff options
author | John Stultz <john.stultz@linaro.org> | 2011-11-14 22:18:07 +0100 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2012-01-27 04:44:23 +0100 |
commit | ea7cf49a7633c2b70125f59b4e3553d9181cb15d (patch) | |
tree | 877bca59752e387e93fc030079afc28515c86edf /include | |
parent | ntp: Cleanup timex.h (diff) | |
download | linux-ea7cf49a7633c2b70125f59b4e3553d9181cb15d.tar.xz linux-ea7cf49a7633c2b70125f59b4e3553d9181cb15d.zip |
ntp: Access tick_length variable via ntp_tick_length()
Currently the NTP managed tick_length value is accessed globally,
in preparations for locking cleanups, make sure it is accessed via
a function and mark it as static.
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Eric Dumazet <eric.dumazet@gmail.com>
CC: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include')
-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 92e01fc31ca6..b75e1864ed19 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h @@ -250,7 +250,7 @@ extern void ntp_clear(void); #define NTP_INTERVAL_LENGTH (NSEC_PER_SEC/NTP_INTERVAL_FREQ) /* Returns how long ticks are at present, in ns / 2^NTP_SCALE_SHIFT. */ -extern u64 tick_length; +extern u64 ntp_tick_length(void); extern void second_overflow(void); extern int do_adjtimex(struct timex *); |