summaryrefslogtreecommitdiff
path: root/include/linux/types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-11 22:11:05 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-12-21 03:26:30 +0300
commit2e346b19aab9ee40e5e429667a0a515f1d68b714 (patch)
tree1b14b2dec50e14932e5fd39f2453cddbc915c4f4 /include/linux/types.h
parentd1d71b30e1f85e8b5d7c0d8edc16869bdc4d535f (diff)
downloadlinux-2e346b19aab9ee40e5e429667a0a515f1d68b714.tar.xz
ktime.h: move ktime_t to types.h
ktime.h pulls in quite a few headers recursively (including printk.h) - this is going to help with trimming sched.h dependencies. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/types.h')
-rw-r--r--include/linux/types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index 253168bb3fe1..2bc8766ba20c 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -120,6 +120,9 @@ typedef s64 int64_t;
#define aligned_be64 __aligned_be64
#define aligned_le64 __aligned_le64
+/* Nanosecond scalar representation for kernel time values */
+typedef s64 ktime_t;
+
/**
* The type used for indexing onto a disc or disc partition.
*