mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ktime: add missing declaration of ktime_get() in ktime.h
@ 2013-07-01  5:53 Joonsoo Kim
  2013-07-01  8:20 ` Thomas Gleixner
  0 siblings, 1 reply; 3+ messages in thread
From: Joonsoo Kim @ 2013-07-01  5:53 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel, Joonsoo Kim

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-01  9:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-01  5:53 [PATCH] ktime: add missing declaration of ktime_get() in ktime.h Joonsoo Kim
2013-07-01  8:20 ` Thomas Gleixner
2013-07-01  9:40   ` Joonsoo Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®