timekeeping: Provide ktime_get[*]_ns() helpers
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:04:29 +0000 (21:04 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 17:18:04 +0000 (10:18 -0700)
commit897994e32b2b0a41ce4222c3b38a05bd2d1ee9fa
treed209ea9455d0770f30d17aecc2ac1b54857d513f
parentdcaab54e348c5b66cca4802815ceebd37059e70c
timekeeping: Provide ktime_get[*]_ns() helpers

A lot of code converts either timespecs or ktime_t to
nanoseconds. Provide helper functions.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/timekeeping.h