summaryrefslogtreecommitdiffstats
path: root/include/linux/time.h
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2014-07-16 21:03:58 +0000
committerJohn Stultz <john.stultz@linaro.org>2014-07-23 10:17:53 -0700
commit361a3bf00582469877f8d18ff20f1efa6b781274 (patch)
tree8ee505002fe5b839728b16a054590d2b44b8be1b /include/linux/time.h
parentb17b20d70dcbe48dd1aa6aba073a60ddfce5d7db (diff)
downloadop-kernel-dev-361a3bf00582469877f8d18ff20f1efa6b781274.zip
op-kernel-dev-361a3bf00582469877f8d18ff20f1efa6b781274.tar.gz
time64: Add time64.h header and define struct timespec64
Define the timespec64 structure and standard helper functions. [ tglx: Make it 32bit only. 64bit really can map timespec to timespec64 ] Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/linux/time.h')
-rw-r--r--include/linux/time.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/include/linux/time.h b/include/linux/time.h
index 129f0bd..234feac 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -4,25 +4,12 @@
# include <linux/cache.h>
# include <linux/seqlock.h>
# include <linux/math64.h>
-#include <uapi/linux/time.h>
+# include <linux/time64.h>
extern struct timezone sys_tz;
-/* Parameters used to convert the timespec values: */
-#define MSEC_PER_SEC 1000L
-#define USEC_PER_MSEC 1000L
-#define NSEC_PER_USEC 1000L
-#define NSEC_PER_MSEC 1000000L
-#define USEC_PER_SEC 1000000L
-#define NSEC_PER_SEC 1000000000L
-#define FSEC_PER_SEC 1000000000000000LL
-
#define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1)
-/* Located here for timespec_valid_strict */
-#define KTIME_MAX ((s64)~((u64)1 << 63))
-#define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
-
static inline int timespec_equal(const struct timespec *a,
const struct timespec *b)
{
OpenPOWER on IntegriCloud