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>
This commit is contained in:
Thomas Gleixner
2014-07-16 21:04:14 +00:00
committed by John Stultz
parent 0077dc60f2
commit f5264d5d5a
2 changed files with 8 additions and 16 deletions

View File

@@ -773,21 +773,6 @@ int timekeeping_notify(struct clocksource *clock)
return tk->clock == clock ? 0 : -1;
}
/**
* 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