Skip to content

Commit

Permalink
timekeeping: Remove monotonic_to_bootbased
Browse files Browse the repository at this point in the history
No more users.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
  • Loading branch information
Thomas Gleixner authored and John Stultz committed Jul 23, 2014
1 parent cbcf2dd commit 250fade
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion include/linux/timekeeping.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ struct timespec __current_kernel_time(void);
*/
struct timespec get_monotonic_coarse(void);
extern void getrawmonotonic(struct timespec *ts);
extern void monotonic_to_bootbased(struct timespec *ts);
extern void get_monotonic_boottime(struct timespec *ts);
extern void ktime_get_ts64(struct timespec64 *ts);

Expand Down
15 changes: 0 additions & 15 deletions kernel/time/timekeeping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1570,21 +1570,6 @@ void get_monotonic_boottime(struct timespec *ts)
}
EXPORT_SYMBOL_GPL(get_monotonic_boottime);

/**
* monotonic_to_bootbased - Convert the monotonic time to boot based.
* @ts: pointer to the timespec to be converted
*/
void monotonic_to_bootbased(struct timespec *ts)
{
struct timekeeper *tk = &tk_core.timekeeper;
struct timespec64 ts64;

ts64 = timespec_to_timespec64(*ts);
ts64 = timespec64_add(ts64, tk->total_sleep_time);
*ts = timespec64_to_timespec(ts64);
}
EXPORT_SYMBOL_GPL(monotonic_to_bootbased);

unsigned long get_seconds(void)
{
struct timekeeper *tk = &tk_core.timekeeper;
Expand Down

0 comments on commit 250fade

Please sign in to comment.