diff options
Diffstat (limited to 'include/linux/time.h')
-rw-r--r-- | include/linux/time.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/time.h b/include/linux/time.h index 4d49cabb9b47..64e797464589 100644 --- a/include/linux/time.h +++ b/include/linux/time.h | |||
@@ -44,6 +44,12 @@ extern unsigned long mktime(const unsigned int year, const unsigned int mon, | |||
44 | 44 | ||
45 | extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec); | 45 | extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec); |
46 | 46 | ||
47 | /* | ||
48 | * Returns true if the timespec is norm, false if denorm: | ||
49 | */ | ||
50 | #define timespec_valid(ts) \ | ||
51 | (((ts)->tv_sec >= 0) && (((unsigned) (ts)->tv_nsec) < NSEC_PER_SEC)) | ||
52 | |||
47 | extern struct timespec xtime; | 53 | extern struct timespec xtime; |
48 | extern struct timespec wall_to_monotonic; | 54 | extern struct timespec wall_to_monotonic; |
49 | extern seqlock_t xtime_lock; | 55 | extern seqlock_t xtime_lock; |