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