From: Peter Zijlstra Date: Tue, 17 Mar 2015 11:39:10 +0000 (+0100) Subject: time: Add ktime_get_tai_ns() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe5fba05b46c791c95a9f34228ac495f81f72fc0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git time: Add ktime_get_tai_ns() Because it was the only clock for which we didn't have a _ns() accessor yet. Signed-off-by: Peter Zijlstra (Intel) Cc: John Stultz Cc: Thomas Gleixner Signed-off-by: Ingo Molnar --- diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index f36b1edf3f73..5047b83483d6 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -214,6 +214,11 @@ static inline u64 ktime_get_boot_ns(void) return ktime_to_ns(ktime_get_boottime()); } +static inline u64 ktime_get_tai_ns(void) +{ + return ktime_to_ns(ktime_get_clocktai()); +} + static inline u64 ktime_get_raw_ns(void) { return ktime_to_ns(ktime_get_raw());