Changeset 615 for GPL/branches/uniaud32-next/include/linux/time.h
- Timestamp:
- Jan 1, 2021, 5:31:48 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/time.h
r479 r615 4 4 #include <asm/param.h> 5 5 #include <linux/types.h> 6 #include <linux/ktime.h> 7 #include <linux/time64.h> 8 9 #define NSEC_PER_SEC 1000000000L 10 6 11 7 12 #ifndef _STRUCT_TIMESPEC … … 12 17 }; 13 18 #endif /* _STRUCT_TIMESPEC */ 19 20 static inline int timespec_equal(const struct timespec *a, 21 const struct timespec *b) 22 { 23 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); 24 } 14 25 15 26 /* … … 130 141 void msleep(unsigned int msecs); 131 142 143 /** 144 * ns_to_timespec - Convert nanoseconds to timespec 145 * @nsec: the nanoseconds value to be converted 146 * 147 * Returns the timespec representation of the nsec parameter. 148 */ 149 extern struct timespec ns_to_timespec(const s64 nsec); 150 #define getrawmonotonic(ts) do_posix_clock_monotonic_gettime(ts) 132 151 #endif
Note:
See TracChangeset
for help on using the changeset viewer.