summaryrefslogtreecommitdiffstats
path: root/include/linux/timex.h
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2011-11-14 13:18:07 -0800
committerJohn Stultz <john.stultz@linaro.org>2012-01-26 19:44:23 -0800
commitea7cf49a7633c2b70125f59b4e3553d9181cb15d (patch)
tree877bca59752e387e93fc030079afc28515c86edf /include/linux/timex.h
parent8357929e6ae3661d5a3a7378a717f29873ea18c6 (diff)
downloadop-kernel-dev-ea7cf49a7633c2b70125f59b4e3553d9181cb15d.zip
op-kernel-dev-ea7cf49a7633c2b70125f59b4e3553d9181cb15d.tar.gz
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/linux/timex.h')
-rw-r--r--include/linux/timex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/timex.h b/include/linux/timex.h
index 92e01fc..b75e186 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 *);
OpenPOWER on IntegriCloud