Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+6 -5
+3 -5
include/linux/ktime.h
··· 21 21 #ifndef _LINUX_KTIME_H 22 22 #define _LINUX_KTIME_H 23 23 24 - #include <linux/time.h> 25 - #include <linux/jiffies.h> 26 24 #include <asm/bug.h> 27 - 28 - /* Nanosecond scalar representation for kernel time values */ 29 - typedef s64 ktime_t; 25 + #include <linux/jiffies.h> 26 + #include <linux/time.h> 27 + #include <linux/types.h> 30 28 31 29 /** 32 30 * ktime_set - Set a ktime_t variable from a seconds/nanoseconds value
+3
include/linux/types.h
··· 120 120 #define aligned_be64 __aligned_be64 121 121 #define aligned_le64 __aligned_le64 122 122 123 + /* Nanosecond scalar representation for kernel time values */ 124 + typedef s64 ktime_t; 125 + 123 126 /** 124 127 * The type used for indexing onto a disc or disc partition. 125 128 *