diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-10-19 13:14:44 +0200 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2017-10-30 23:13:35 +0100 |
commit | e0956dcc4ba74ec4b17e32fc9a156fcba1ef6610 (patch) | |
tree | 63b47cbfeb91f6118fc72c896be4b6922e1e9433 /kernel/time/ntp_internal.h | |
parent | rtc: Allow rtc drivers to specify the tv_nsec value for ntp (diff) | |
download | linux-e0956dcc4ba74ec4b17e32fc9a156fcba1ef6610.tar.xz linux-e0956dcc4ba74ec4b17e32fc9a156fcba1ef6610.zip |
timekeeping: Consolidate timekeeping_inject_offset code
The code to check the adjtimex() or clock_adjtime() arguments is spread
out across multiple files for presumably only historic reasons. As a
preparatation for a rework to get rid of the use of 'struct timeval'
and 'struct timespec' in there, this moves all the portions into
kernel/time/timekeeping.c and marks them as 'static'.
The warp_clock() function here is not as closely related as the others,
but I feel it still makes sense to move it here in order to consolidate
all callers of timekeeping_inject_offset().
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[jstultz: Whitespace fixup]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time/ntp_internal.h')
-rw-r--r-- | kernel/time/ntp_internal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/time/ntp_internal.h b/kernel/time/ntp_internal.h index d8a7c11fa71a..74b52cd48209 100644 --- a/kernel/time/ntp_internal.h +++ b/kernel/time/ntp_internal.h @@ -7,7 +7,6 @@ extern void ntp_clear(void); extern u64 ntp_tick_length(void); extern ktime_t ntp_get_next_leap(void); extern int second_overflow(time64_t secs); -extern int ntp_validate_timex(struct timex *); extern int __do_adjtimex(struct timex *, struct timespec64 *, s32 *); extern void __hardpps(const struct timespec64 *, const struct timespec64 *); #endif /* _LINUX_NTP_INTERNAL_H */ |