diff options
Diffstat (limited to 'include/linux/oom.h')
-rw-r--r-- | include/linux/oom.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h index 9d7c34a741e7..40e5e3a6bc20 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h | |||
@@ -14,6 +14,8 @@ | |||
14 | 14 | ||
15 | struct zonelist; | 15 | struct zonelist; |
16 | struct notifier_block; | 16 | struct notifier_block; |
17 | struct mem_cgroup; | ||
18 | struct task_struct; | ||
17 | 19 | ||
18 | /* | 20 | /* |
19 | * Types of limitations to the nodes from which allocations may occur | 21 | * Types of limitations to the nodes from which allocations may occur |
@@ -45,6 +47,10 @@ static inline void oom_killer_enable(void) | |||
45 | oom_killer_disabled = false; | 47 | oom_killer_disabled = false; |
46 | } | 48 | } |
47 | 49 | ||
50 | /* The badness from the OOM killer */ | ||
51 | extern unsigned long badness(struct task_struct *p, struct mem_cgroup *mem, | ||
52 | const nodemask_t *nodemask, unsigned long uptime); | ||
53 | |||
48 | /* sysctls */ | 54 | /* sysctls */ |
49 | extern int sysctl_oom_dump_tasks; | 55 | extern int sysctl_oom_dump_tasks; |
50 | extern int sysctl_oom_kill_allocating_task; | 56 | extern int sysctl_oom_kill_allocating_task; |