aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2004-08-22 22:47:16 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-22 22:47:16 -0700
commitb9cbc585eda36c84edbf05c0e83e3bf950ff45fa (patch)
treeb23b0f8016bcfc8e256f5a61fa20803ba4ffada1 /include
parent346ed9c13aab9be890a8bd52d06fd6761876bb85 (diff)
downloadhistory-b9cbc585eda36c84edbf05c0e83e3bf950ff45fa.tar.gz
[PATCH] gettimeofday nanoseconds patch
This issue was discussed on lkml and linux-ia64. The patch introduces "getnstimeofday" and removes all the code scaling gettimeofday to nanoseoncs. It makes it possible for the posix-timer functions to return higher accuracy. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/time.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/time.h b/include/linux/time.h
index d24a690cbd04da..de41e12bbbffe0 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -348,6 +348,7 @@ extern long do_utimes(char __user * filename, struct timeval * times);
struct itimerval;
extern int do_setitimer(int which, struct itimerval *value, struct itimerval *ovalue);
extern int do_getitimer(int which, struct itimerval *value);
+extern void getnstimeofday (struct timespec *tv);
static inline void
set_normalized_timespec (struct timespec *ts, time_t sec, long nsec)