diff options
author | Matt Helsley <matthltc@us.ibm.com> | 2006-01-10 05:52:39 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 17:01:39 +0100 |
commit | 69778e325c3007c8c8a653fcee2c298ffe071fd4 (patch) | |
tree | 8ed3d8f9ac20449ea01a161539ceddb72deb4d78 /kernel/hrtimer.c | |
parent | [PATCH] hrtimer: convert posix timers completely (diff) | |
download | linux-69778e325c3007c8c8a653fcee2c298ffe071fd4.tar.xz linux-69778e325c3007c8c8a653fcee2c298ffe071fd4.zip |
[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 <matthltc@us.ibm.com>
Cc: john stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/hrtimer.c')
-rw-r--r-- | kernel/hrtimer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 11fde0caee56..f073a2461faa 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 |