diff options
-rw-r--r-- | include/linux/sched.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 29b7d4f87d20..2e05e402df4f 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1,9 +1,9 @@ | |||
1 | #ifndef _LINUX_SCHED_H | 1 | #ifndef _LINUX_SCHED_H |
2 | #define _LINUX_SCHED_H | 2 | #define _LINUX_SCHED_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
4 | #include <asm/param.h> /* for HZ */ | 5 | #include <asm/param.h> /* for HZ */ |
5 | 6 | ||
6 | #include <linux/config.h> | ||
7 | #include <linux/capability.h> | 7 | #include <linux/capability.h> |
8 | #include <linux/threads.h> | 8 | #include <linux/threads.h> |
9 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
@@ -37,6 +37,15 @@ | |||
37 | #include <linux/rcupdate.h> | 37 | #include <linux/rcupdate.h> |
38 | #include <linux/futex.h> | 38 | #include <linux/futex.h> |
39 | 39 | ||
40 | #include <linux/time.h> | ||
41 | #include <linux/param.h> | ||
42 | #include <linux/resource.h> | ||
43 | #include <linux/timer.h> | ||
44 | #include <linux/hrtimer.h> | ||
45 | |||
46 | #include <asm/processor.h> | ||
47 | #endif | ||
48 | |||
40 | #include <linux/auxvec.h> /* For AT_VECTOR_SIZE */ | 49 | #include <linux/auxvec.h> /* For AT_VECTOR_SIZE */ |
41 | 50 | ||
42 | struct exec_domain; | 51 | struct exec_domain; |
@@ -103,13 +112,6 @@ extern unsigned long nr_uninterruptible(void); | |||
103 | extern unsigned long nr_active(void); | 112 | extern unsigned long nr_active(void); |
104 | extern unsigned long nr_iowait(void); | 113 | extern unsigned long nr_iowait(void); |
105 | 114 | ||
106 | #include <linux/time.h> | ||
107 | #include <linux/param.h> | ||
108 | #include <linux/resource.h> | ||
109 | #include <linux/timer.h> | ||
110 | #include <linux/hrtimer.h> | ||
111 | |||
112 | #include <asm/processor.h> | ||
113 | 115 | ||
114 | /* | 116 | /* |
115 | * Task state bitmask. NOTE! These bits are also | 117 | * Task state bitmask. NOTE! These bits are also |