aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-04-25 14:54:40 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-04-25 14:54:40 +0100
commita3b6714e1744a5e841753d74aca1de5972f24e6d (patch)
tree2a463aa2d4fd93f754fb819e5e2ec56482844c99
parent98ca79d52bc34b8dfff729bc8559dbb918c9d02a (diff)
Partially sanitise linux/sched.h for userspace consumption
For now, just make sure all inclusion of private header files is done within #ifdef __KERNEL__. There'll be more to clean up later. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r--include/linux/sched.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 29b7d4f87d2..2e05e402df4 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1,9 +1,9 @@
#ifndef _LINUX_SCHED_H
#define _LINUX_SCHED_H
+#ifdef __KERNEL__
#include <asm/param.h> /* for HZ */
-#include <linux/config.h>
#include <linux/capability.h>
#include <linux/threads.h>
#include <linux/kernel.h>
@@ -37,6 +37,15 @@
#include <linux/rcupdate.h>
#include <linux/futex.h>
+#include <linux/time.h>
+#include <linux/param.h>
+#include <linux/resource.h>
+#include <linux/timer.h>
+#include <linux/hrtimer.h>
+
+#include <asm/processor.h>
+#endif
+
#include <linux/auxvec.h> /* For AT_VECTOR_SIZE */
struct exec_domain;
@@ -103,13 +112,6 @@ extern unsigned long nr_uninterruptible(void);
extern unsigned long nr_active(void);
extern unsigned long nr_iowait(void);
-#include <linux/time.h>
-#include <linux/param.h>
-#include <linux/resource.h>
-#include <linux/timer.h>
-#include <linux/hrtimer.h>
-
-#include <asm/processor.h>
/*
* Task state bitmask. NOTE! These bits are also