From: Kent Overstreet Date: Mon, 11 Dec 2023 19:11:05 +0000 (-0500) Subject: ktime.h: move ktime_t to types.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2e346b19aab9ee40e5e429667a0a515f1d68b714;p=linux.git 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 --- diff --git a/include/linux/ktime.h b/include/linux/ktime.h index 73f20deb497d5..3a4e723eae0f1 100644 --- a/include/linux/ktime.h +++ b/include/linux/ktime.h @@ -21,12 +21,10 @@ #ifndef _LINUX_KTIME_H #define _LINUX_KTIME_H -#include -#include #include - -/* Nanosecond scalar representation for kernel time values */ -typedef s64 ktime_t; +#include +#include +#include /** * ktime_set - Set a ktime_t variable from a seconds/nanoseconds value diff --git a/include/linux/types.h b/include/linux/types.h index 253168bb3fe15..2bc8766ba20ca 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. *