aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ktime.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-11 14:11:05 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-12-20 19:26:30 -0500
commit2e346b19aab9ee40e5e429667a0a515f1d68b714 (patch)
tree1b14b2dec50e14932e5fd39f2453cddbc915c4f4 /include/linux/ktime.h
parentsched.h: Move (spin|rwlock)_needbreak() to spinlock.h (diff)
downloadwireguard-linux-2e346b19aab9ee40e5e429667a0a515f1d68b714.tar.xz
wireguard-linux-2e346b19aab9ee40e5e429667a0a515f1d68b714.zip
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/ktime.h')
-rw-r--r--include/linux/ktime.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/ktime.h b/include/linux/ktime.h
index 73f20deb497d..3a4e723eae0f 100644
--- a/include/linux/ktime.h
+++ b/include/linux/ktime.h
@@ -21,12 +21,10 @@
#ifndef _LINUX_KTIME_H
#define _LINUX_KTIME_H
-#include <linux/time.h>
-#include <linux/jiffies.h>
#include <asm/bug.h>
-
-/* Nanosecond scalar representation for kernel time values */
-typedef s64 ktime_t;
+#include <linux/jiffies.h>
+#include <linux/time.h>
+#include <linux/types.h>
/**
* ktime_set - Set a ktime_t variable from a seconds/nanoseconds value