aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-07-16 17:04:28 -0400
committerJohn Stultz <john.stultz@linaro.org>2014-07-23 13:18:03 -0400
commitdcaab54e348c5b66cca4802815ceebd37059e70c (patch)
tree2327eee73a9eb7865b80f354baa089b376e3a59b /kernel/time
parentd2cb58c85ce4789caafa66fa8f1c641ab2504ead (diff)
timekeeping: Remove ktime_get_monotonic_offset()
No more users. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/timekeeping.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index 032e77a54a79..f7378eaebe67 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -1708,24 +1708,6 @@ ktime_t ktime_get_update_offsets_now(ktime_t *offs_real, ktime_t *offs_boot,
1708#endif 1708#endif
1709 1709
1710/** 1710/**
1711 * ktime_get_monotonic_offset() - get wall_to_monotonic in ktime_t format
1712 */
1713ktime_t ktime_get_monotonic_offset(void)
1714{
1715 struct timekeeper *tk = &tk_core.timekeeper;
1716 unsigned long seq;
1717 struct timespec64 wtom;
1718
1719 do {
1720 seq = read_seqcount_begin(&tk_core.seq);
1721 wtom = tk->wall_to_monotonic;
1722 } while (read_seqcount_retry(&tk_core.seq, seq));
1723
1724 return timespec64_to_ktime(wtom);
1725}
1726EXPORT_SYMBOL_GPL(ktime_get_monotonic_offset);
1727
1728/**
1729 * do_adjtimex() - Accessor function to NTP __do_adjtimex function 1711 * do_adjtimex() - Accessor function to NTP __do_adjtimex function
1730 */ 1712 */
1731int do_adjtimex(struct timex *txc) 1713int do_adjtimex(struct timex *txc)