diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-07-17 01:04:14 +0400 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2014-07-23 21:17:59 +0400 |
commit | f5264d5d5a0729306cc792d84432b97785d2662a (patch) | |
tree | c9a1325c8353fa5571be1bdef49fa8e372b7d648 /kernel/time | |
parent | 0077dc60f274b9a7e9aa705a34784fefb87e0eee (diff) | |
download | linux-f5264d5d5a0729306cc792d84432b97785d2662a.tar.xz |
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 'kernel/time')
-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 * |