diff options
Diffstat (limited to 'include/linux/oom.h')
-rw-r--r-- | include/linux/oom.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h index d36a8221f58b..fb9826847b89 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h | |||
@@ -1,18 +1,11 @@ | |||
1 | #ifndef __INCLUDE_LINUX_OOM_H | 1 | #ifndef __INCLUDE_LINUX_OOM_H |
2 | #define __INCLUDE_LINUX_OOM_H | 2 | #define __INCLUDE_LINUX_OOM_H |
3 | 3 | ||
4 | /* | ||
5 | * /proc/<pid>/oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for | ||
6 | * pid. | ||
7 | */ | ||
8 | #define OOM_SCORE_ADJ_MIN (-1000) | ||
9 | #define OOM_SCORE_ADJ_MAX 1000 | ||
10 | |||
11 | #ifdef __KERNEL__ | ||
12 | 4 | ||
13 | #include <linux/sched.h> | 5 | #include <linux/sched.h> |
14 | #include <linux/types.h> | 6 | #include <linux/types.h> |
15 | #include <linux/nodemask.h> | 7 | #include <linux/nodemask.h> |
8 | #include <uapi/linux/oom.h> | ||
16 | 9 | ||
17 | struct zonelist; | 10 | struct zonelist; |
18 | struct notifier_block; | 11 | struct notifier_block; |
@@ -82,5 +75,4 @@ extern struct task_struct *find_lock_task_mm(struct task_struct *p); | |||
82 | extern int sysctl_oom_dump_tasks; | 75 | extern int sysctl_oom_dump_tasks; |
83 | extern int sysctl_oom_kill_allocating_task; | 76 | extern int sysctl_oom_kill_allocating_task; |
84 | extern int sysctl_panic_on_oom; | 77 | extern int sysctl_panic_on_oom; |
85 | #endif /* __KERNEL__*/ | ||
86 | #endif /* _INCLUDE_LINUX_OOM_H */ | 78 | #endif /* _INCLUDE_LINUX_OOM_H */ |