From: Matt Helsley Date: Tue, 10 Jan 2006 04:52:39 +0000 (-0800) Subject: [PATCH] Export ktime_get_ts() X-Git-Tag: v2.6.16-rc1~581 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=69778e325c3007c8c8a653fcee2c298ffe071fd4;p=linux-2.6-omap-h63xx.git [PATCH] Export ktime_get_ts() This series removes the getnstimestamp() function from kernel/time.c in favor of kernel/hrtimer.c's ktime_get_ts() function which currently does exactly the same thing: retrieves a high-resolution (ns) timespec structure and performs the wall_to_monotonic adjustment. This patch: Export ktime_get_ts() to be used as a timestamp function since it uses getnstimefoday() and does the wall_to_monotonic adjustment. Signed-off-by: Matt Helsley Cc: john stultz Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 11fde0caee5..f073a2461fa 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -108,6 +108,7 @@ void ktime_get_ts(struct timespec *ts) set_normalized_timespec(ts, ts->tv_sec + tomono.tv_sec, ts->tv_nsec + tomono.tv_nsec); } +EXPORT_SYMBOL_GPL(ktime_get_ts); /* * Functions and macros which are different for UP/SMP systems are kept in a