diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-07-16 23:04:14 +0200 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2014-07-23 19:17:59 +0200 |
commit | f5264d5d5a0729306cc792d84432b97785d2662a (patch) | |
tree | c9a1325c8353fa5571be1bdef49fa8e372b7d648 /kernel/time/timekeeping.c | |
parent | timekeeping: Provide ktime_get_with_offset() (diff) | |
download | linux-f5264d5d5a0729306cc792d84432b97785d2662a.tar.xz linux-f5264d5d5a0729306cc792d84432b97785d2662a.zip |
timekeeping: Use ktime_t based data for ktime_get_real()
Speed up the readout.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to '')
-rw-r--r-- | kernel/time/timekeeping.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 7c5f5e4a006c..56db2e16970a 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -774,21 +774,6 @@ int timekeeping_notify(struct clocksource *clock) } /** - * ktime_get_real - get the real (wall-) time in ktime_t format - * - * returns the time in ktime_t format - */ -ktime_t ktime_get_real(void) -{ - struct timespec64 now; - - getnstimeofday64(&now); - - return timespec64_to_ktime(now); -} -EXPORT_SYMBOL_GPL(ktime_get_real); - -/** * getrawmonotonic - Returns the raw monotonic time in a timespec * @ts: pointer to the timespec to be set * |