lkml.org 
[lkml]   [2013]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] ktime: add missing declaration of ktime_get() in ktime.h
Date
We cannot use ktime_get() API even if we include ktime.h, because there is
no declaration of this API in ktime.h. So add it.

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>

diff --git a/include/linux/ktime.h b/include/linux/ktime.h
index bbca128..29954cd 100644
--- a/include/linux/ktime.h
+++ b/include/linux/ktime.h
@@ -357,6 +357,7 @@ static inline bool ktime_to_timespec_cond(const ktime_t kt, struct timespec *ts)
#define LOW_RES_NSEC TICK_NSEC
#define KTIME_LOW_RES (ktime_t){ .tv64 = LOW_RES_NSEC }

+extern ktime_t ktime_get(void);
/* Get the monotonic time in timespec format: */
extern void ktime_get_ts(struct timespec *ts);

--
1.7.9.5


\
 
 \ /
  Last update: 2013-07-01 08:01    [W:2.811 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site