Commit 2e346b19 authored by Kent Overstreet's avatar Kent Overstreet

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent d1d71b30
...@@ -21,12 +21,10 @@ ...@@ -21,12 +21,10 @@
#ifndef _LINUX_KTIME_H #ifndef _LINUX_KTIME_H
#define _LINUX_KTIME_H #define _LINUX_KTIME_H
#include <linux/time.h>
#include <linux/jiffies.h>
#include <asm/bug.h> #include <asm/bug.h>
#include <linux/jiffies.h>
/* Nanosecond scalar representation for kernel time values */ #include <linux/time.h>
typedef s64 ktime_t; #include <linux/types.h>
/** /**
* ktime_set - Set a ktime_t variable from a seconds/nanoseconds value * ktime_set - Set a ktime_t variable from a seconds/nanoseconds value
......
...@@ -120,6 +120,9 @@ typedef s64 int64_t; ...@@ -120,6 +120,9 @@ typedef s64 int64_t;
#define aligned_be64 __aligned_be64 #define aligned_be64 __aligned_be64
#define aligned_le64 __aligned_le64 #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. * The type used for indexing onto a disc or disc partition.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment