aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-07-16 17:04:16 -0400
committerJohn Stultz <john.stultz@linaro.org>2014-07-23 13:17:59 -0400
commitb82c817e2d16e818c472eb71019de521816000a3 (patch)
tree2d35c8db2aac6e285c14c5db633d17875c929d76 /kernel/time
parentf5264d5d5a0729306cc792d84432b97785d2662a (diff)
timekeeping; Use ktime_t based data for ktime_get_boottime()
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.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index 56db2e16970a..5e60aa09af79 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -1566,23 +1566,6 @@ void get_monotonic_boottime(struct timespec *ts)
1566EXPORT_SYMBOL_GPL(get_monotonic_boottime); 1566EXPORT_SYMBOL_GPL(get_monotonic_boottime);
1567 1567
1568/** 1568/**
1569 * ktime_get_boottime - Returns monotonic time since boot in a ktime
1570 *
1571 * Returns the monotonic time since boot in a ktime
1572 *
1573 * This is similar to CLOCK_MONTONIC/ktime_get, but also
1574 * includes the time spent in suspend.
1575 */
1576ktime_t ktime_get_boottime(void)
1577{
1578 struct timespec ts;
1579
1580 get_monotonic_boottime(&ts);
1581 return timespec_to_ktime(ts);
1582}
1583EXPORT_SYMBOL_GPL(ktime_get_boottime);
1584
1585/**
1586 * monotonic_to_bootbased - Convert the monotonic time to boot based. 1569 * monotonic_to_bootbased - Convert the monotonic time to boot based.
1587 * @ts: pointer to the timespec to be converted 1570 * @ts: pointer to the timespec to be converted
1588 */ 1571 */