timekeeping: Remove ktime_get_monotonic_offset()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:04:28 +0000 (21:04 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 17:18:03 +0000 (10:18 -0700)
No more users.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/timekeeping.h
kernel/time/timekeeping.c

index 910a98ef21548325b7ea9ded3c8bd2759b37f4b3..64c81f367866d8d61b049e6bdc146bb4c3fecf02 100644 (file)
@@ -108,7 +108,6 @@ enum tk_offsets {
 
 extern ktime_t ktime_get(void);
 extern ktime_t ktime_get_with_offset(enum tk_offsets offs);
-extern ktime_t ktime_get_monotonic_offset(void);
 extern ktime_t ktime_mono_to_any(ktime_t tmono, enum tk_offsets offs);
 
 /**
index 032e77a54a79a997e519d452df3e4c2872547342..f7378eaebe6773ba2dc48f0ff5e919c0da2ebbf4 100644 (file)
@@ -1707,24 +1707,6 @@ ktime_t ktime_get_update_offsets_now(ktime_t *offs_real, ktime_t *offs_boot,
 }
 #endif
 
-/**
- * ktime_get_monotonic_offset() - get wall_to_monotonic in ktime_t format
- */
-ktime_t ktime_get_monotonic_offset(void)
-{
-       struct timekeeper *tk = &tk_core.timekeeper;
-       unsigned long seq;
-       struct timespec64 wtom;
-
-       do {
-               seq = read_seqcount_begin(&tk_core.seq);
-               wtom = tk->wall_to_monotonic;
-       } while (read_seqcount_retry(&tk_core.seq, seq));
-
-       return timespec64_to_ktime(wtom);
-}
-EXPORT_SYMBOL_GPL(ktime_get_monotonic_offset);
-
 /**
  * do_adjtimex() - Accessor function to NTP __do_adjtimex function
  */
This page took 0.026761 seconds and 5 git commands to generate.