Last change
on this file since 695 was 679, checked in by David Azarewicz, 4 years ago |
Merge changes from Paul's uniaud32next branch.
|
File size:
707 bytes
|
Line | |
---|
1 | #ifndef _LINUX_KTIME_H
|
---|
2 | #define _LINUX_KTIME_H
|
---|
3 |
|
---|
4 | #include <linux/time.h>
|
---|
5 | #include <linux/jiffies.h>
|
---|
6 |
|
---|
7 | /* Nanosecond scalar representation for kernel time values */
|
---|
8 | typedef s64 ktime_t;
|
---|
9 |
|
---|
10 | #define ktime_get_ts(x) do_posix_clock_monotonic_gettime(x)
|
---|
11 | /* Map the ktime_t to timespec conversion to ns_to_timespec function */
|
---|
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))
|
---|
19 | #include <linux/timekeeping.h>
|
---|
20 |
|
---|
21 | #endif /* _LINUX_KTIME_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.