aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/timekeeping.h1
-rw-r--r--kernel/time/timekeeping.c15
2 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h
index 903ecc10fcff..8ea3ca1b0ee5 100644
--- a/include/linux/timekeeping.h
+++ b/include/linux/timekeeping.h
@@ -27,7 +27,6 @@ struct timespec __current_kernel_time(void);
27 */ 27 */
28struct timespec get_monotonic_coarse(void); 28struct timespec get_monotonic_coarse(void);
29extern void getrawmonotonic(struct timespec *ts); 29extern void getrawmonotonic(struct timespec *ts);
30extern void monotonic_to_bootbased(struct timespec *ts);
31extern void get_monotonic_boottime(struct timespec *ts); 30extern void get_monotonic_boottime(struct timespec *ts);
32extern void ktime_get_ts64(struct timespec64 *ts); 31extern void ktime_get_ts64(struct timespec64 *ts);
33 32
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index f7378eaebe67..b35613508725 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -1570,21 +1570,6 @@ void get_monotonic_boottime(struct timespec *ts)
1570} 1570}
1571EXPORT_SYMBOL_GPL(get_monotonic_boottime); 1571EXPORT_SYMBOL_GPL(get_monotonic_boottime);
1572 1572
1573/**
1574 * monotonic_to_bootbased - Convert the monotonic time to boot based.
1575 * @ts: pointer to the timespec to be converted
1576 */
1577void monotonic_to_bootbased(struct timespec *ts)
1578{
1579 struct timekeeper *tk = &tk_core.timekeeper;
1580 struct timespec64 ts64;
1581
1582 ts64 = timespec_to_timespec64(*ts);
1583 ts64 = timespec64_add(ts64, tk->total_sleep_time);
1584 *ts = timespec64_to_timespec(ts64);
1585}
1586EXPORT_SYMBOL_GPL(monotonic_to_bootbased);
1587
1588unsigned long get_seconds(void) 1573unsigned long get_seconds(void)
1589{ 1574{
1590 struct timekeeper *tk = &tk_core.timekeeper; 1575 struct timekeeper *tk = &tk_core.timekeeper;