diff options
Diffstat (limited to 'include/linux/time64.h')
| -rw-r--r-- | include/linux/time64.h | 17 | 
1 files changed, 9 insertions, 8 deletions
diff --git a/include/linux/time64.h b/include/linux/time64.h index 93d39499838e..0a7b2f79cec7 100644 --- a/include/linux/time64.h +++ b/include/linux/time64.h @@ -2,17 +2,20 @@  #ifndef _LINUX_TIME64_H  #define _LINUX_TIME64_H -#include <uapi/linux/time.h>  #include <linux/math64.h>  typedef __s64 time64_t;  typedef __u64 timeu64_t; -#if __BITS_PER_LONG == 64 -/* this trick allows us to optimize out timespec64_to_timespec */ -# define timespec64 timespec -#define itimerspec64 itimerspec -#else +/* CONFIG_64BIT_TIME enables new 64 bit time_t syscalls in the compat path + * and 32-bit emulation. + */ +#ifndef CONFIG_64BIT_TIME +#define __kernel_timespec timespec +#endif + +#include <uapi/linux/time.h> +  struct timespec64 {  	time64_t	tv_sec;			/* seconds */  	long		tv_nsec;		/* nanoseconds */ @@ -23,8 +26,6 @@ struct itimerspec64 {  	struct timespec64 it_value;  }; -#endif -  /* Parameters used to convert the timespec values: */  #define MSEC_PER_SEC	1000L  #define USEC_PER_MSEC	1000L  |