Changeset 629 for GPL/branches/uniaud32-next/include/linux/ktime.h
- Timestamp:
- Jan 4, 2021, 10:15:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/ktime.h
r615 r629 5 5 #include <linux/jiffies.h> 6 6 7 /* 8 * ktime_t: 9 * 10 * A single 64-bit variable is used to store the hrtimers 11 * internal representation of time values in scalar nanoseconds. The 12 * design plays out best on 64-bit CPUs, where most conversions are 13 * NOPs and most arithmetic ktime_t operations are plain arithmetic 14 * operations. 15 * 16 */ 17 union ktime { 18 s64 tv64; 19 }; 7 /* Nanosecond scalar representation for kernel time values */ 8 typedef s64 ktime_t; 20 9 21 typedef union ktime ktime_t; /* Kill this */22 10 #define ktime_get_ts(x) do_posix_clock_monotonic_gettime(x) 23 11 /* Map the ktime_t to timespec conversion to ns_to_timespec function */ 24 #define ktime_to_timespec(kt) ns_to_timespec((kt).tv64) 25 #define ktime_get_ts64 ktime_get_ts 12 #define ktime_to_timespec(kt) ns_to_timespec((kt).tv64) 13 #define ktime_get_ts64 ktime_get_ts 14 #define ktime_get_raw_ts64 getrawmonotonic 15 #define ktime_get_real_ts64 getnstimeofday 16 17 /* Map the ktime_t to timespec conversion to ns_to_timespec function */ 18 #define ktime_to_timespec64(kt) ns_to_timespec64((kt)) 26 19 #include <linux/timekeeping.h> 27 20
Note:
See TracChangeset
for help on using the changeset viewer.