diff options
Diffstat (limited to 'include/linux/time.h')
-rw-r--r-- | include/linux/time.h | 5 |
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 | ||
39 | static inline int timespec_equal(struct timespec *a, struct timespec *b) | 39 | static 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, | |||
116 | extern unsigned int alarm_setitimer(unsigned int seconds); | 117 | extern unsigned int alarm_setitimer(unsigned int seconds); |
117 | extern int do_getitimer(int which, struct itimerval *value); | 118 | extern int do_getitimer(int which, struct itimerval *value); |
118 | extern void getnstimeofday(struct timespec *tv); | 119 | extern void getnstimeofday(struct timespec *tv); |
120 | extern void getboottime(struct timespec *ts); | ||
121 | extern void monotonic_to_bootbased(struct timespec *ts); | ||
119 | 122 | ||
120 | extern struct timespec timespec_trunc(struct timespec t, unsigned gran); | 123 | extern struct timespec timespec_trunc(struct timespec t, unsigned gran); |
121 | extern int timekeeping_is_continuous(void); | 124 | extern int timekeeping_is_continuous(void); |