aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-04-25 09:54:40 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-04-25 09:54:40 -0400
commita3b6714e1744a5e841753d74aca1de5972f24e6d (patch)
tree2a463aa2d4fd93f754fb819e5e2ec56482844c99 /include/linux/sched.h
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>
Diffstat (limited to 'include/linux/sched.h')
-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 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
42struct exec_domain; 51struct exec_domain;
@@ -103,13 +112,6 @@ extern unsigned long nr_uninterruptible(void);
103extern unsigned long nr_active(void); 112extern unsigned long nr_active(void);
104extern unsigned long nr_iowait(void); 113extern 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