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>
Este cometimento está contido em:

cometido por
John Stultz

ascendente
f5264d5d5a
cometimento
b82c817e2d
@@ -1565,23 +1565,6 @@ void get_monotonic_boottime(struct timespec *ts)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(get_monotonic_boottime);
|
||||
|
||||
/**
|
||||
* ktime_get_boottime - Returns monotonic time since boot in a ktime
|
||||
*
|
||||
* Returns the monotonic time since boot in a ktime
|
||||
*
|
||||
* This is similar to CLOCK_MONTONIC/ktime_get, but also
|
||||
* includes the time spent in suspend.
|
||||
*/
|
||||
ktime_t ktime_get_boottime(void)
|
||||
{
|
||||
struct timespec ts;
|
||||
|
||||
get_monotonic_boottime(&ts);
|
||||
return timespec_to_ktime(ts);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ktime_get_boottime);
|
||||
|
||||
/**
|
||||
* monotonic_to_bootbased - Convert the monotonic time to boot based.
|
||||
* @ts: pointer to the timespec to be converted
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador