Skip to content

Commit

Permalink
[PATCH] Export ktime_get_ts()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matt Helsley authored and Linus Torvalds committed Jan 10, 2006
1 parent becf8b5 commit 69778e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69778e3

Please sign in to comment.