aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/time.h
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2007-07-18 20:38:57 -0400
committerSteve French <sfrench@us.ibm.com>2007-07-18 20:38:57 -0400
commit1ff8392c32a2645d2665ca779ecb91bb29361c13 (patch)
tree860b95e9a499ade4060848740fc6ce1fbb4e4e8d /include/linux/time.h
parent70b315b0dd3879cb3ab8aadffb14f10b2d19b9c3 (diff)
parent5bae7ac9feba925fd0099057f6b23d7be80b7b41 (diff)
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts: fs/cifs/export.c
Diffstat (limited to 'include/linux/time.h')
-rw-r--r--include/linux/time.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/time.h b/include/linux/time.h
index dda9be685ab6..ec3b0ced0afe 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -36,7 +36,8 @@ struct timezone {
36#define NSEC_PER_SEC 1000000000L 36#define NSEC_PER_SEC 1000000000L
37#define FSEC_PER_SEC 1000000000000000L 37#define FSEC_PER_SEC 1000000000000000L
38 38
39static inline int timespec_equal(struct timespec *a, struct timespec *b) 39static inline int timespec_equal(const struct timespec *a,
40 const struct timespec *b)
40{ 41{
41 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); 42 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec);
42} 43}
@@ -116,6 +117,8 @@ extern int do_setitimer(int which, struct itimerval *value,
116extern unsigned int alarm_setitimer(unsigned int seconds); 117extern unsigned int alarm_setitimer(unsigned int seconds);
117extern int do_getitimer(int which, struct itimerval *value); 118extern int do_getitimer(int which, struct itimerval *value);
118extern void getnstimeofday(struct timespec *tv); 119extern void getnstimeofday(struct timespec *tv);
120extern void getboottime(struct timespec *ts);
121extern void monotonic_to_bootbased(struct timespec *ts);
119 122
120extern struct timespec timespec_trunc(struct timespec t, unsigned gran); 123extern struct timespec timespec_trunc(struct timespec t, unsigned gran);
121extern int timekeeping_is_continuous(void); 124extern int timekeeping_is_continuous(void);